emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#32230: closed (27.0.50; GCC 7 warning due to -Wfor


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#32230: closed (27.0.50; GCC 7 warning due to -Wformat-overflow)
Date: Sat, 21 Jul 2018 16:27:02 +0000

Your message dated Sat, 21 Jul 2018 12:26:41 -0400
with message-id <address@hidden>
and subject line Re: bug#32230: 27.0.50; GCC 7 warning due to -Wformat-overflow
has caused the debbugs.gnu.org bug report #32230,
regarding 27.0.50; GCC 7 warning due to -Wformat-overflow
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
32230: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=32230
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 27.0.50; GCC 7 warning due to -Wformat-overflow Date: Fri, 20 Jul 2018 18:02:07 -0400 User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
The Cygwin-w32 build has turned up another GCC 7 warning:

../../master/src/w32term.c: In function ‘x_draw_glyph_string’:
../../master/src/w32term.c:1477:27: warning: ‘__builtin___sprintf_chk’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
    sprintf ((char *) buf, "%0*X",
                           ^
../../master/src/w32term.c:1477:4: note: ‘__builtin___sprintf_chk’ output between 5 and 8 bytes into a destination of size 7
    sprintf ((char *) buf, "%0*X",
    ^
The method that Paul used in bug#32189 could be used here too, but I'm
not sure it's worth the trouble.  My inclination is to just increase the
buffer size from 7 to 8.

Ken




--- End Message ---
--- Begin Message --- Subject: Re: bug#32230: 27.0.50; GCC 7 warning due to -Wformat-overflow Date: Sat, 21 Jul 2018 12:26:41 -0400 User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
On 7/21/2018 8:47 AM, Eli Zaretskii wrote:
I think it should go to master, thanks.

Done, as commit f3f67cf. But I forgot to reference the bug number in the commit message. I guess there's no way to fix that, except to edit ChangeLog.3. Sorry.

Ken


--- End Message ---

reply via email to

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