GNU bug report logs - #49261
28.0.50; File Locking Breaks Presumptuous Toolchains

Previous Next

Package: emacs;

Reported by: Mallchad Skeghyeph <ncaprisunfan <at> gmail.com>

Date: Mon, 28 Jun 2021 18:28:02 UTC

Severity: normal

Found in version 28.0.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #245 received at 49261 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: larsi <at> gnus.org, 49261 <at> debbugs.gnu.org
Subject: Re: bug#49261: Segfault during loadup
Date: Mon, 12 Jul 2021 07:50:41 -0700
On 7/12/21 5:07 AM, Eli Zaretskii wrote:

>> Yes that GCC warning was bogus, and your pacification of GCC is valid
> 
> Hmm... is it really a bogus warning?  VALMASK is a 64-bit value, and
> uintptr_t is 32-bit wide.

It's bogus in the sense that 'uintptr_t mask = VALMASK;' has 
well-defined behavior in C; there is no undefined behavior there, since 
VALMASK is an integer and uintptr_t is unsigned. And truncation is what 
is wanted here, so the warning is bogus.




This bug report was last modified 3 years and 305 days ago.

Previous Next


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