Re: [PATCH v3 1/2] linux-user/elfload: test return value of getrlimit

2024-01-22 Thread Philippe Mathieu-Daudé
On 20/1/24 22:45, Thomas Weißschuh wrote: Should getrlimit() fail the value of dumpsize.rlimit_cur may not be initialized. Avoid reading garbage data by checking the return value of getrlimit. Reviewed-by: Richard Henderson Signed-off-by: Thomas Weißschuh --- linux-user/elfload.c | 4 ++--

[PATCH v3 1/2] linux-user/elfload: test return value of getrlimit

2024-01-20 Thread Thomas Weißschuh
Should getrlimit() fail the value of dumpsize.rlimit_cur may not be initialized. Avoid reading garbage data by checking the return value of getrlimit. Reviewed-by: Richard Henderson Signed-off-by: Thomas Weißschuh --- linux-user/elfload.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-