qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] linux-user: Fix the load of ELF files that have


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH] linux-user: Fix the load of ELF files that have no "useful" symbol
Date: Wed, 01 Jun 2011 06:19:38 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Thunderbird/3.1.10

On 06/01/2011 05:36 AM, Cédric VINCENT wrote:
> This patch fixes a "double free()" due to "realloc(syms, 0)" in the
> loader when the ELF file has no "useful" symbol, as with the following
> example (compiled with "sh4-linux-gcc -nostdlib"):
> 
>     .text
>     .align 1
>     .global _start
>     _start:
>         mov     #1, r3
>         trapa   #40     // syscall(__NR_exit)
>         nop
> 
> The bug appears when the log (option "-d") is enabled.
> 
> Signed-off-by: Cédric VINCENT <address@hidden>
> Signed-off-by: Yves JANIN <address@hidden>

Reviewed-by: Richard Henderson <address@hidden>


r~



reply via email to

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