On Tue, 13 Aug 2024 16:17:27 +0200, Eugene Syromiatnikov wrote:
> Static analysis has reported a potential UB:
>
> kmod-31/libkmod/libkmod-builtin.c:125: use_invalid: Using "nullp", which
> points to an out-of-scope variable "buf".
> # 123| size_t linesz = 0;
> # 124|
> # 125|-> while (!nullp) {
> # 126| char buf[BUFSIZ];
> # 127| ssize_t sz;
>
> [...]
Applied, thanks!
[1/1] libkmod: avoid undefined behaviour in libkmod-builtin.c:get_string
commit: 5c22362b6b97af9c6b7587f0c3450001e9893115
Best regards,
--
Lucas De Marchi <[email protected]>