GNU bug report logs - #42656
term.c:1405:25: warning: ‘%d’ directive writing between 2 and 10 bytes into a region of size 3

Previous Next

Package: emacs;

Reported by: noloader <at> gmail.com

Date: Sat, 1 Aug 2020 19:29:02 UTC

Severity: normal

Tags: notabug

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: Jeffrey Walton <noloader <at> gmail.com>, 42656 <at> debbugs.gnu.org
Subject: bug#42656: term.c:1405:25: warning: ‘%d’ directive writing between 2 and 10 bytes into a region of size 3
Date: Mon, 10 Aug 2020 01:07:11 +0200
Andreas Schwab <schwab <at> linux-m68k.org> writes:

> On Aug 01 2020, Jeffrey Walton wrote:
>
>> term.c:1405:23: note: directive argument in the range [11, 2147483646]
>>         sprintf (fkey, "f%d", i);
>>                        ^~~~~
>
> That's clearly a compiler bug.  The loop counts i from 11 to 64, so
> 2147483646 can never happen.

Yeah, that clearly seems like a compiler bug?  What compiler are you
using?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 327 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.