GNU bug report logs - #75569
30.0.93; Large /proc/* file are read incompletely

Previous Next

Package: emacs;

Reported by: Daniel Mendler <mail <at> daniel-mendler.de>

Date: Wed, 15 Jan 2025 00:22:01 UTC

Severity: normal

Found in version 30.0.93

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Eli Zaretskii <eliz <at> gnu.org>, Juri Linkov <juri <at> linkov.net>
Cc: mail <at> daniel-mendler.de, 75569 <at> debbugs.gnu.org
Subject: Re: bug#75569: 30.0.93; Large /proc/* file are read incompletely
Date: Wed, 15 Jan 2025 13:08:10 -0800
On 2025-01-15 12:07, Eli Zaretskii wrote:
> -  if (seekable || !NILP (end))
> +  if ((seekable && st.size > 0) || !NILP (end))

Presumably you meant st.st_size. However, POSIX does not specify the 
value of st.st_size for every seekable file. Instead, when reading Emacs 
should look at st.st_size only for regular files, shared memory objects, 
and typed memory objects (the last two are rare enough that we don't 
need to bother to optimize for them).

Also, there are other uses of 'seekable' in the code that probably need 
a similar treatment.




This bug report was last modified 162 days ago.

Previous Next


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