]> git.eshelyaron.com Git - emacs.git/commit
insert-file-contents beware buffer relocation
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 20 Jul 2025 01:04:38 +0000 (18:04 -0700)
committerEshel Yaron <me@eshelyaron.com>
Fri, 25 Jul 2025 08:11:38 +0000 (10:11 +0200)
commite74c2a4a8a68418030565f85fafd4c9bab68199e
tree74b84288762821ee9e5ab910fbc50b1327295db7
parentf4373bb03455261fad90ecb0fd5a9a658055f02d
insert-file-contents beware buffer relocation

This fixes a potential (albeit quite unlikely) bug
introduced during recent fixes to Bug#77315.
* src/fileio.c (union read_non_regular.s.inserted):
Bring back this member.
(read_non_regular, Finsert_file_contents): Work in the unlikely
case when internal_condition_case_1 relocates the buffer before
calling read_non_regular.

(cherry picked from commit 49ca3a2151abb1188765c04ad6650b91c2494d1a)
src/fileio.c