mit-pdos / xv6-riscv

Xv6 for RISC-V
Other
6.98k stars 2.58k forks source link

Added missing va_end(). #107

Closed RavSS closed 2 years ago

RavSS commented 2 years ago

The printf() implementation lacks a va_end(ap) call before it returns, as va_start(ap) was used. va_end usually does nothing on most platforms, but not including it is undefined behaviour in C and is thus unsafe.