Re: [PATCH] ppc/spapr: Fix ubsan warning with unaligned pointer access

2023-12-21 Thread Alexey Kardashevskiy
On 20/12/2023 12:45, Richard Henderson wrote: On 12/16/23 16:14, Daniel Hoffman wrote: Found while running QTest with UBsan. Unaligned pointers appear to be valid, so moving the read to an explicit memcpy to an intermediate. ---   hw/ppc/vof.c | 5 -   1 file changed, 4 insertions(+), 1 de

Re: [PATCH] ppc/spapr: Fix ubsan warning with unaligned pointer access

2023-12-19 Thread Richard Henderson
On 12/16/23 16:14, Daniel Hoffman wrote: Found while running QTest with UBsan. Unaligned pointers appear to be valid, so moving the read to an explicit memcpy to an intermediate. --- hw/ppc/vof.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hw/ppc/vof.c b/hw/ppc/vof.

[PATCH] ppc/spapr: Fix ubsan warning with unaligned pointer access

2023-12-16 Thread Daniel Hoffman
Found while running QTest with UBsan. Unaligned pointers appear to be valid, so moving the read to an explicit memcpy to an intermediate. --- hw/ppc/vof.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hw/ppc/vof.c b/hw/ppc/vof.c index e3b430a81f4..609a51c645d 100644 --- a