]> Kevux Git Server - fll/commit
Security: NULL dereferences discovered by GCC's -fanalyzer.
authorKevin Day <thekevinday@gmail.com>
Sat, 7 Aug 2021 04:48:55 +0000 (23:48 -0500)
committerKevin Day <thekevinday@gmail.com>
Sat, 7 Aug 2021 04:48:55 +0000 (23:48 -0500)
commitd3a65ad8c5606842fa63b79a47a4fb6b5aec425e
tree568ec30f949878c2f4b8d0af7fe62d3e5135eafd
parentd581d8c09314f4debbf4d8d2caa22f5efb07c5fb
Security: NULL dereferences discovered by GCC's -fanalyzer.

The socket bind is both missing the parameter check and is passing '&' when the variable is already a pointer.

The f_utf_character_to_char() is a mess.
Not sure what I was trying to do, but it is clearly wrong.
Redesign it to be more correct but I should revisit this for a more thorough review.
There are endianess situations that also need resolved so I added an @todo.
level_0/f_socket/c/socket.c
level_0/f_socket/c/socket.h
level_0/f_utf/c/utf.c
level_0/f_utf/c/utf.h