qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2] target-ppc: kvm: Fix memory overflow issue a


From: Alexander Graf
Subject: Re: [Qemu-devel] [PATCH v2] target-ppc: kvm: Fix memory overflow issue about strncat()
Date: Wed, 15 Oct 2014 15:52:41 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.1.2


On 15.10.14 15:48, Chen Gang wrote:
> strncat() will append additional '\0' to destination buffer, so need
> additional 1 byte for it, or may cause memory overflow, just like other
> area within QEMU have done.
> 
> And can use g_strdup_printf() instead of strncat(), which may be more
> easier understanding.
> 
> Signed-off-by: Chen Gang <address@hidden>

Thanks, applied to ppc-next. And sorry for not replying earlier.


Alex



reply via email to

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