Re: [PATCH 1/2] linux-user/gen-vdso: Handle fseek() failure

2025-07-10 Thread Richard Henderson
On 7/10/25 11:07, Peter Maydell wrote: Coverity points out that we don't check for fseek() failure in gen-vdso.c, and so we might pass -1 to malloc(). Add the error checking. (This is a standalone executable that doesn't link against glib, so we can't do the easy thing and use g_file_get_content

[PATCH 1/2] linux-user/gen-vdso: Handle fseek() failure

2025-07-10 Thread Peter Maydell
Coverity points out that we don't check for fseek() failure in gen-vdso.c, and so we might pass -1 to malloc(). Add the error checking. (This is a standalone executable that doesn't link against glib, so we can't do the easy thing and use g_file_get_contents().) Coverity: CID 1523742 Signed-off-b