[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [patch #8877] sio: avoid implicit type cast in sio_read/sio
From: |
Stephan Linz |
Subject: |
[lwip-devel] [patch #8877] sio: avoid implicit type cast in sio_read/sio_write |
Date: |
Thu, 21 Jan 2016 19:10:51 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36 |
URL:
<http://savannah.nongnu.org/patch/?8877>
Summary: sio: avoid implicit type cast in sio_read/sio_write
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: slz
Submitted on: Do 21 Jan 2016 20:10:50 CET
Category: Contrib
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Details:
On POSIX systems the result of read() and write() can be negative to mark an
error. The current implementation of sio_read() and sio_write() will have an
implicit type cast from signed integer to unsigned integer.
Every time, when a error has happened, the upper layer sees a much too large
number of received or sendet bytes. That leads to a potential buffer overrun
or misinterpretation of what has happened.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Do 21 Jan 2016 20:10:50 CET Name:
0004-sio-avoid-implicit-type-cast-in-sio_read-sio_write.patch Size: 1kB By:
slz
<http://savannah.nongnu.org/patch/download.php?file_id=36118>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?8877>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.nongnu.org/
- [lwip-devel] [patch #8877] sio: avoid implicit type cast in sio_read/sio_write,
Stephan Linz <=