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

Submitted by:  Petr Cernin <cerninp>
Submitted on:  Thu 25 Mar 2010 10:31:03 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

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

Fixed, thanks for reporting.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
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>

 

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 cerninp (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 25 Mar 2010 12:19:35 PM UTCgoldsimonStatusNone=>Fixed
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1