]> git.eshelyaron.com Git - emacs.git/commit
Fix insert-file-contents overlap calculation
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 13 Jul 2025 00:03:29 +0000 (17:03 -0700)
committerEshel Yaron <me@eshelyaron.com>
Thu, 24 Jul 2025 08:48:53 +0000 (10:48 +0200)
commitd791f1c4fc2f6e6a74339980b8e7fc3bf9566954
treec21fd9694f53f99451ee9c27ae6bffddc6481f21
parentc29fe920aab5e1dde17d5a4d7896812c8c592ea0
Fix insert-file-contents overlap calculation

* src/fileio.c (Finsert_file_contents): Overlap is impossible, so
omit incorrect overflow adjustments that caused later index
calculations to go off the rails (Bug#77315).  Change a ‘ZV_BYTE’
to ‘same_at_end’ for clarity; they have the same value here.

(cherry picked from commit 61a8ce0280668980a4452b112103c9bc879e1f49)
src/fileio.c