]> xenbits.xensource.com Git - unikraft/libs/lwip.git/commit
sockets.c: Use size_t for iovec length
authorAndrei Tatar <andrei@unikraft.io>
Thu, 6 Feb 2025 13:05:37 +0000 (14:05 +0100)
committerRazvan Deaconescu <razvand@unikraft.io>
Tue, 11 Feb 2025 15:42:46 +0000 (17:42 +0200)
commit4efb424352d94a8b1aa638618f3d19c7f8dc575a
treecbd5aee157b82b56f5d8402a04df49ffb3b71e91
parent70a272151f4842a8e2b0b863afd90a0019f30bda
sockets.c: Use size_t for iovec length

This change updates the lwip socket read/write ops to use unsigned
size_t for the length of the passed-in iovec.

The internal lwip read/write functions still use int, and simply package
it into struct msghdr, which is size_t once again.
If overflow is a concern we should fix it with a build patch.

Signed-off-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Sergiu Moga <sergiu@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #61
sockets.c