qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 01/22] block: avoid buffer overrun by using pstr


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH 01/22] block: avoid buffer overrun by using pstrcpy, not strncpy
Date: Wed, 09 May 2012 11:50:11 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1

Am 09.05.2012 11:23, schrieb Jim Meyering:
> From: Jim Meyering <address@hidden>
> 
> Also, use PATH_MAX, rather than the arbitrary 1024.
> Using PATH_MAX is more consistent with other filename-related
> variables in this file, like backing_filename and tmp_filename.
> 
> Signed-off-by: Jim Meyering <address@hidden>

Not absolutely required because the source buffer is 1024 bytes and null
terminated as well, but it doesn't hurt either.

Acked-by: Kevin Wolf <address@hidden>



reply via email to

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