Subject: bug#40913: 24.5; Crash on open of file

From: Jason Gibson <[email-masked]>
Date: Tue, 28 Apr 2020 09:52:31 -0700

>> From: Jason Gibson <[email-masked]>
>> Date: Mon, 27 Apr 2020 14:31:15 -0700
>>
>> Attached is a file that crashes Emacs on find-file (find-file-literally
>> does not crash).  E.g.:
>>
>>   tar xf foo8.tar
>>   LC_CTYPE=en_US.UTF-8 emacs -Q -nw --eval '(find-file "foo8")'
>>   *poof*
>
> Thanks.  This is a very old bug, now fixed on the emacs-27 branch.  If
> you can build that branch, please see that the crash is gone now.

The change works for me as well.

Since this would seem to be a good vector for remote buffer overflow, it
might make sense to backport this to prior releases.

Thanks for the quick fix.

This e-mail may contain information that is privileged or confidential. If you are not the intended recipient, please delete the e-mail and any attachments and notify us immediately.