From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#32230: 27.0.50; GCC 7 warning due to -Wformat-overflow Date: Sat, 21 Jul 2018 10:26:15 +0300 Message-ID: <83effxyrqg.fsf@gnu.org> References: <2d9037f1-e52f-f3ca-7c53-e203ea6ae520@cornell.edu> <83fu0dyt9r.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1532157907 10383 195.159.176.226 (21 Jul 2018 07:25:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 21 Jul 2018 07:25:07 +0000 (UTC) Cc: 32230@debbugs.gnu.org, eggert@cs.ucla.edu To: kbrown@cornell.edu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 21 09:25:03 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fgmGF-0002YK-5d for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Jul 2018 09:25:03 +0200 Original-Received: from localhost ([::1]:51016 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgmIK-0008B4-BY for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Jul 2018 03:27:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgmID-0008Ax-Hq for bug-gnu-emacs@gnu.org; Sat, 21 Jul 2018 03:27:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fgmIA-0001BL-Ez for bug-gnu-emacs@gnu.org; Sat, 21 Jul 2018 03:27:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45122) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fgmIA-0001BH-AG for bug-gnu-emacs@gnu.org; Sat, 21 Jul 2018 03:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fgmIA-0007RY-1e for bug-gnu-emacs@gnu.org; Sat, 21 Jul 2018 03:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Jul 2018 07:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32230 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32230-submit@debbugs.gnu.org id=B32230.153215798628563 (code B ref 32230); Sat, 21 Jul 2018 07:27:02 +0000 Original-Received: (at 32230) by debbugs.gnu.org; 21 Jul 2018 07:26:26 +0000 Original-Received: from localhost ([127.0.0.1]:50140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fgmHa-0007Qc-6W for submit@debbugs.gnu.org; Sat, 21 Jul 2018 03:26:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55515) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fgmHZ-0007QQ-23 for 32230@debbugs.gnu.org; Sat, 21 Jul 2018 03:26:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fgmHS-0000cE-UO for 32230@debbugs.gnu.org; Sat, 21 Jul 2018 03:26:19 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54763) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgmHO-0000Zf-IE; Sat, 21 Jul 2018 03:26:14 -0400 Original-Received: from [176.228.60.248] (port=1617 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fgmHN-0002Z1-CJ; Sat, 21 Jul 2018 03:26:14 -0400 In-reply-to: <83fu0dyt9r.fsf@gnu.org> (message from Eli Zaretskii on Sat, 21 Jul 2018 09:53:04 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:148760 Archived-At: > Date: Sat, 21 Jul 2018 09:53:04 +0300 > From: Eli Zaretskii > Cc: 32230@debbugs.gnu.org, eggert@cs.ucla.edu > > But do you understand why it says "between 5 and 8 bytes"? The > corresponding argument to snprintf is either 4 or 6, so it should be > between 5 and 7. Where could the extra byte come from? Is that > because glyphless.ch is a 25-bit field? I meant sprintf, of course. And if the above is the reason, then perhaps using something like (unsigned int) glyph->u.glyphless.ch & 0xffffff is a cleaner solution (assuming it shuts up the warning)?