buglwIP - A Lightweight TCP/IP stack - Bugs: bug #34733, Null poiter exception with...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #34733: Null poiter exception with SOCKET_DEBUG.

Submitted by:  Boberek <bober>
Submitted on:  Thu 03 Nov 2011 11:13:23 AM UTC  
 
Category: sockets/netconnSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned Release: None
lwIP version: CVS Head

Sun 13 Nov 2011 04:07:08 PM UTC, comment #1:

Fixed, thanks for reporting.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Thu 03 Nov 2011 11:13:23 AM UTC, original submission:

I am debugging stack with defined SOCKET_DEBUG.
In line 761-762 occur null pointer exception.

> if (*fromlen > saddr.sa.sa_len) {
> *fromlen = saddr.sa.sa_len;

The reason is line 739:

>#if !SOCKETS_DEBUG
> if (from && fromlen)
>#endif /* !SOCKETS_DEBUG */


Maybe add line

> if (from && fromlen)

before lines:

> if (*fromlen > saddr.sa.sa_len) {
> *fromlen = saddr.sa.sa_len;
> }
> MEMCPY(from, &saddr, *fromlen);

Boberek <bober>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by goldsimon (Posted a comment)
  • -unavailable- added by bober (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 13 Nov 2011 04:07:08 PM UTCgoldsimonStatusNone=>Fixed
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed
      Planned Release=>1.5.0

    Back to the top


    Powered by Savane 3.1-cleanup1