[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #50536] socket API might fail for sizeof(int) <= 2
From: |
Simon Goldschmidt |
Subject: |
[lwip-devel] [bug #50536] socket API might fail for sizeof(int) <= 2 |
Date: |
Mon, 13 Mar 2017 17:01:16 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36 |
URL:
<http://savannah.nongnu.org/bugs/?50536>
Summary: socket API might fail for sizeof(int) <= 2
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: goldsimon
Submitted on: Mon 13 Mar 2017 09:01:14 PM UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
lwIP version: git head
_______________________________________________________
Details:
Currently, we use int as return value for various socket functions returning
copy- or datagram length.
However, the opengroup spec says we should return ssize_t instead here. This
might be to compensate for platforms where 'int' has 16 bits (and thus we
could return 32KByte only, and our max.-sized pbufs would fail).
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?50536>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-devel] [bug #50536] socket API might fail for sizeof(int) <= 2,
Simon Goldschmidt <=