bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#24118: 25.1; [PATCH] Fix a possible crash caused by mapcar1


From: Paul Eggert
Subject: bug#24118: 25.1; [PATCH] Fix a possible crash caused by mapcar1
Date: Tue, 2 Aug 2016 18:15:53 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

Thanks for the bug report. I installed the attached more-adventurous patch, which truncates the result rather than extending it with nils. This seems a bit more appropriate anyway.

Although it no longer matters for this patch, memclear is specified to store nil values regardless of how nil is represented. Of course memclear's current implementation assumes Qnil is zero, and memclear can't be portably and easily implemented if we merely change Qnil to be nonzero, but that's a bridge we don't have to cross unless we change Qnil to be nonzero.

Attachment: 0001-Fix-mapcar-F-S-crash-when-F-alters-S-s-length.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]