diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2024-10-05 09:01:22 -0700 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2024-10-08 06:31:22 -0700 |
| commit | 2884596f5f385b5712c356310dd4125a089888a8 (patch) | |
| tree | 93dadc6e15ee87dbc14b722578eb6d3064a2e8c4 /linux-user/strace.c | |
| parent | a9ee641bd46f5462eeed183ac3c3760bddfc2600 (diff) | |
| download | focaccia-qemu-2884596f5f385b5712c356310dd4125a089888a8.tar.gz focaccia-qemu-2884596f5f385b5712c356310dd4125a089888a8.zip | |
linux-user: Fix parse_elf_properties GNU0_MAGIC check
Comparing a string of 4 bytes only works in little-endian.
Adjust bulk bswap to only apply to the note payload.
Perform swapping of the note header manually; the magic
is defined so that it does not need a runtime swap.
Fixes: 83f990eb5adb ("linux-user/elfload: Parse NT_GNU_PROPERTY_TYPE_0 notes")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2596
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'linux-user/strace.c')
0 files changed, 0 insertions, 0 deletions