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

Re: [Xen-devel] [PATCH 2/3] tools/xenpmd: fix potential string truncation



On Tue, Jun 27, 2017 at 07:35:44PM +0200, Marek Marczykowski-Górecki wrote:
> GCC 7 warns (and thanks to -Werror, fails) about potential string
> truncation by snprintf in get_next_battery_file. Since the code already
> check if string is no longer than 4 chars, tell gcc about it.
> 
> Signed-off-by: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>

I think this is fixed in staging by enlarging the size of the buffers.
Have you tried the latest code?

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.