]> git.ipfire.org Git - thirdparty/qemu.git/commit
linux-user/elfload: Disable core dump if getrlimit fails
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 27 Feb 2024 01:58:52 +0000 (15:58 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 29 Feb 2024 18:47:55 +0000 (08:47 -1000)
commitf93b9953703be41408d5f0e09a871775d4be3c36
treece42b10ae4743553eb12ac834d9bc4f1f7a76ba6
parentc0c6a0e3528b88aaad0b9d333e295707a195587b
linux-user/elfload: Disable core dump if getrlimit fails

Do not dump core at all if getrlimit fails; this ensures
that dumpsize is valid throughout the function, not just
for the initial test vs rlim_cur.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/elfload.c