Re: [Qemu-devel] [PATCH] elf-loader: Avoid calling qsort(NULL, 0, ...) call

2018-05-08 Thread Philippe Mathieu-Daudé
Hi Paolo, On 04/22/2018 04:22 PM, Richard Henderson wrote: > On 04/21/2018 01:21 PM, Philippe Mathieu-Daudé wrote: >> This fixes the following ASan warning: >> >> $ qemu-system-xtensa -M kc705 -m 128M -semihosting -nographic -monitor >> null -kernel Image.elf >> include/hw/elf_ops.h:179:5:

Re: [Qemu-devel] [PATCH] elf-loader: Avoid calling qsort(NULL, 0, ...) call

2018-04-22 Thread Richard Henderson
On 04/21/2018 01:21 PM, Philippe Mathieu-Daudé wrote: > This fixes the following ASan warning: > > $ qemu-system-xtensa -M kc705 -m 128M -semihosting -nographic -monitor null > -kernel Image.elf > include/hw/elf_ops.h:179:5: runtime error: null pointer passed as argument > 1, which is

[Qemu-devel] [PATCH] elf-loader: Avoid calling qsort(NULL, 0, ...) call

2018-04-21 Thread Philippe Mathieu-Daudé
This fixes the following ASan warning: $ qemu-system-xtensa -M kc705 -m 128M -semihosting -nographic -monitor null -kernel Image.elf include/hw/elf_ops.h:179:5: runtime error: null pointer passed as argument 1, which is declared to never be null Reported-by: AddressSanitizer Signed-off-by: