openwrt / netifd

[MIRROR] OpenWrt Network interface configuration daemon
https://git.openwrt.org/?p=project/netifd.git;
17 stars 19 forks source link

netifd: fix undefined va_list value which can cause crashes #19

Closed mikma closed 8 months ago

mikma commented 8 months ago

Reinitialize the va_list value after the call to netifd_udebug_vprintf() in netifd_log_message().

It's needed since netifd_udebug_vprintf() invokes vsnprintf() which in turn invokes the va_arg() macro, and after that call the va_list value is undefined.

nbd168 commented 8 months ago

Applied, thanks