GNU bug report logs - #79031
31.0.50; Recent change breaks `insert-file-contents-literally'

Previous Next

Package: emacs;

Reported by: Zhengyi Fu <i <at> fuzy.me>

Date: Wed, 16 Jul 2025 13:14:02 UTC

Severity: normal

Found in version 31.0.50

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Full log


Message #10 received at 79031-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Zhengyi Fu <i <at> fuzy.me>
Cc: 79031-done <at> debbugs.gnu.org
Subject: Re: 31.0.50; Recent change breaks `insert-file-contents-literally'
Date: Wed, 16 Jul 2025 11:47:30 -0700
[Message part 1 (text/plain, inline)]
On 2025-07-16 06:13, Zhengyi Fu wrote:
> the following code evaluates to a string of 16384
> bytes!
> 
> (with-temp-buffer
>    (insert-file-contents-literally "/dev/urandom" nil nil 21)
>    (buffer-string))

Thanks for reporting that. I installed the attached patch.
[0001-insert-file-contents-small-gap-bug.patch (text/x-patch, attachment)]

This bug report was last modified 24 days ago.

Previous Next


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