dermesser / libsocket

The ultimate socket library for C and C++, supporting TCP, UDP and Unix sockets (DGRAM and STREAM) on Linux, FreeBSD, Solaris. See also my uvco library for a refreshed version!
https://borgac.net/~lbo/doc/libsocket/
Other
797 stars 195 forks source link

Fix dereference before NULL in recvfrom_unix_dgram_socket #88

Closed TERESH1 closed 2 months ago

TERESH1 commented 2 months ago

Pointer from, which is dereferenced at libunixsocket.c:451, is compared to a NULL value at libunixsocket.c:458.

https://github.com/dermesser/libsocket/blob/1a4480a1214cb68cbf28c7f7050cdd76ab85d6f0/C/unix/libunixsocket.c#L451-L462

Found with Svace