Re: [Qemu-devel] hw/ppc/spapr_iommu.c: spapr_tce_reset() calls memset on NULL pointer

2016-08-07 Thread David Gibson
On Fri, Aug 05, 2016 at 10:45:57AM +0100, Peter Maydell wrote: > If you build with clang-3.8's undefined behaviour sanitizer > it reveals that hw/ppc/spapr_iommu.c is calling memset() > with a NULL pointer: > > $ (cd build/clang; UBSAN_OPTIONS=print_stacktrace=1 >

[Qemu-devel] hw/ppc/spapr_iommu.c: spapr_tce_reset() calls memset on NULL pointer

2016-08-05 Thread Peter Maydell
If you build with clang-3.8's undefined behaviour sanitizer it reveals that hw/ppc/spapr_iommu.c is calling memset() with a NULL pointer: $ (cd build/clang; UBSAN_OPTIONS=print_stacktrace=1 QTEST_QEMU_BINARY=ppc64-softmmu/qemu-system-ppc64 QTEST_QEMU_IMG=qemu-img