buglwIP - A Lightweight TCP/IP stack - Bugs: bug #29332, lwip_select() processes readset...

 
 

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

bug #29332: lwip_select() processes readset incorrectly

Submitter:  Petr Cernin <cerninp>
Submitted:  Thu 25 Mar 2010 10:31:03 AM UTC
   
 
Category:  sockets/netconn Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  CVS Head

Thu 25 Mar 2010 12:19:35 PM UTC, comment #1: 

Fixed, thanks for reporting.

Simon Goldschmidt <goldsimon>
Group administrator
Thu 25 Mar 2010 10:31:03 AM UTC, original submission:  

in function lwip_selscan() in sockets.c(line 1001):

the following condition in IF statement is incorrect,  parenthesis are missing:

There is:

if (readset_in && FD_ISSET(i, readset_in) && (lastdata != NULL) || (rcvevent > 0)) {
   ...
}

There should be:

if (readset_in && FD_ISSET(i, readset_in) && ((lastdata != NULL) || (rcvevent > 0))) {
   ...
}


Petr Cernin <cerninp>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-03-25 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code