[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 10/13] vvfat: correctly generate numeric-tail
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v2 10/13] vvfat: correctly generate numeric-tail of short file names |
Date: |
Mon, 7 Aug 2017 06:07:06 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
On 08/05/2017 01:52 PM, Pranith Kumar wrote:
> FYI,
>
> This commit breaks the build with gcc-7:
>
> CC block/vvfat.o
> qemu/block/vvfat.c: In function ‘read_directory’:
> qemu/block/vvfat.c:605:37: error: ‘__builtin___sprintf_chk’ may write
> a terminating nul past the end of the destination
> [-Werror=format-overflow=]
> int len = sprintf(tail, "~%d", i);
> ^~~~~
Doesn't commit 7c8730d45f6 fix that?
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature