qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 02/10] linux-user: Fix parse_elf_properties GNU0_MAGIC check


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH 02/10] linux-user: Fix parse_elf_properties GNU0_MAGIC check
Date: Mon, 7 Oct 2024 16:50:15 -0300
User-agent: Mozilla Thunderbird

On 5/10/24 20:33, Richard Henderson wrote:
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>
---
  linux-user/elfload.c | 12 ++++++------
  1 file changed, 6 insertions(+), 6 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]