gvanem / Watt-32

Watt-32 TCP/IP library and samples.
https://www.watt-32.net/
18 stars 8 forks source link

Fix `iov_len` overflow checks #76

Closed jwt27 closed 1 year ago

jwt27 commented 1 year ago

Now returns EINVAL, and also checks if the sum of all iov_lens stays below INT_MAX. The loops are split in two, to ensure that all iovecs are valid before any bytes are received/transmitted.

gvanem commented 1 year ago

Merged & thanks!