lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] Bug in netconn_alloc?


From: Walter Saegesser
Subject: [lwip-users] Bug in netconn_alloc?
Date: Tue, 24 May 2011 08:52:23 +0200

In the “netconn_alloc” (api_msg.c) you find

conn = (struct netconn *)memp_malloc(MEMP_NETCONN);

#if LWIP_TCP

  sys_mbox_set_invalid(&conn->acceptmbox);

#endif

As far as I see, ‘acceptmbox’ has not been assigned and thus can hold any value – if you are unlucky enough even a valid handle.

Is this a bug or is there a hidden intention behind it?

 

Walter

 

_______________________________________________
Walter Saegesser
Dipl.-Ing. (FH)

R&D - Software
Business Unit IMS – Line of Business Solar Inverter
_______________________________________________
Delta Renewable Energy Systems (Switzerland) AG
Burgerfeldstrasse 19, CH-8730 Uznach SG, Switzerland
TEL:       +41 (0)55 246-4140
FAX:      +41 (0)55 246-4116
address@hidden
www.deltaenergysystems.com
_______________________________________________

 

********************************************************************************************************************************
This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain
confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
[Delta Energy Systems]
********************************************************************************************************************************

reply via email to

[Prev in Thread] Current Thread [Next in Thread]