]> granicus.if.org Git - esp-idf/commit
lwip: Check for underflow in FD_SET()/FD_GET()
authorAngus Gratton <angus@espressif.com>
Tue, 3 Oct 2017 23:41:09 +0000 (10:41 +1100)
committerAngus Gratton <gus@projectgus.com>
Mon, 16 Oct 2017 01:45:50 +0000 (09:45 +0800)
commit541493d87769e0fa7fa128f7bdd0c2b5bcaa25d0
tree9e5be68c445929e36820bfc609e5adff2d064468
parent3f83914f7aa2916cbff9b03f5df8533bfed9f9f5
lwip: Check for underflow in FD_SET()/FD_GET()

select() only works with LWIP sockets which have a high LWIP_SOCKET_OFFSET,
so chance of accidental underflow is high.
components/lwip/include/lwip/lwip/sockets.h