mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
Commit0f54df53d2("build: Remove gnulib") introduced a bug when I rewrote existing code that used gnulib areadlink(). A missing "continue" statement on the path where fstatat(2) failed caused fall-through to the case where it tries to use malloc(3) on the value from the uninitialized stat buf. This caused a huge amount of memory to be allocated, invoking the oom-killer inside the appliance. Reported-by: Yongkui Guo Fixes: commit0f54df53d2Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1960217
3.6 KiB
3.6 KiB