Home
last modified time | relevance | path

Searched hist:"8 efdb7ba1b2acce9fb63ccc2e7982e19fdf5be86" (Results 1 – 1 of 1) sorted by relevance

/qemu/system/
H A Dphysmem.c8efdb7ba1b2acce9fb63ccc2e7982e19fdf5be86 Thu Aug 12 15:15:25 UTC 2021 Peter Maydell <peter.maydell@linaro.org> softmmu/physmem.c: Check return value from realpath()

The realpath() function can return NULL on error, so we need to check
for it to avoid crashing when we try to strstr() into it.
This can happen if we run out of memory, or if /sys/ is not mounted,
among other situations.

Fixes: Coverity 1459913, 1460474
Fixes: ce317be98db0 ("exec: fetch the alignment of Linux devdax pmem character device nodes")
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Jingqi Liu <jingqi.liu@intel.com>
Message-id: 20210812151525.31456-1-peter.maydell@linaro.org