mirror of
https://git.busybox.net/busybox
synced 2025-05-10 04:33:59 +02:00
When `fstat` fails, `st` is left uninitialised. In our case, Ben Kohler noticed our release media builds were failing in Gentoo on x86 when building busybox with occasional SIGBUS. This turned out to be EOVERFLOW (from 32-bit ino_t) which wasn't being reported because nothing was checking the return value from `fstat`. Fix that to avoid UB (use of uninit var) and to give a more friendly error to the user. This actually turns out to be fixed already in the kernel from back in 2010 [0] and 2016 [1]. [0] |
||
---|---|---|
.. | ||
.gitignore | ||
docproc.c | ||
fixdep.c | ||
Makefile | ||
split-include.c |