buglwIP - A Lightweight TCP/IP stack - Bugs: bug #45708, LWIP_ASSERT in api_msg.c, function...

 
 

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

bug #45708: LWIP_ASSERT in api_msg.c, function err_tcp, seems wrong.

Submitter:  Paul Szego <pszego>
Submitted:  Thu 06 Aug 2015 05:17:12 PM UTC
   
 
Category:  TCP Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  git head

Tue 18 Aug 2015 06:29:53 PM UTC, comment #1: 

Fixed, thanks for reporting.

Simon Goldschmidt <goldsimon>
Group administrator
Thu 06 Aug 2015 05:17:12 PM UTC, original submission:  

The LWIP_ASSERT at line 418, in function err_tcp() doesn't seem correct:

      LWIP_ASSERT("inavlid op_completed_sem", op_completed_sem != SYS_SEM_NULL);

The declaration of op_completed_sem:

    sys_sem_t* op_completed_sem

so it's a pointer to a sys_sem_t, whereas SYS_SEM_NULL is just a plain sys_sem_t. Perhaps replace that assert with this:

      LWIP_ASSERT("inavlid op_completed_sem", *op_completed_sem != SYS_SEM_NULL);

Paul Szego <pszego>

 

(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 pszego (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
    2015-08-18 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code