]> git.ipfire.org Git - thirdparty/hostap.git/commit
UBSan: Avoid memcpy(ptr, NULL, 0)
authorJouni Malinen <j@w1.fi>
Sat, 23 Feb 2019 12:01:25 +0000 (14:01 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 25 Feb 2019 17:48:49 +0000 (19:48 +0200)
commita9377bc380d870baed60ce6e29370e6df46cd037
treec77e630ca1ee34bc2cfe99a8eac5230d1a1fd60f
parent5a23c2528a5b9fc00e3282720d5828ed49f1a77b
UBSan: Avoid memcpy(ptr, NULL, 0)

This results in an UBSan warning that can be avoided easily.

os_unix.c:524:3: runtime error: null pointer passed as argument 2, which is declared to never be null

Signed-off-by: Jouni Malinen <j@w1.fi>
src/utils/os_unix.c