|
| From: | Philippe Mathieu-Daudé |
| Subject: | Re: [PATCH] q800: fix segfault with invalid MacROM |
| Date: | Thu, 6 Jan 2022 13:38:40 +0100 |
| User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 |
On 6/1/22 13:22, Laurent Vivier wrote:
"qemu-system-m68k -M q800 -bios /dev/null" crahses with a segfault
Typo "crashes".
in q800_init(). This happens because the code doesn't check that rom_ptr() returned a non-NULL pointer . Resolves: https://gitlab.com/qemu-project/qemu/-/issues/756 Reported-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu> --- hw/m68k/q800.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
| [Prev in Thread] | Current Thread | [Next in Thread] |