diff options
| author | Paul Eggert | 2025-07-15 22:36:54 -0700 |
|---|---|---|
| committer | Paul Eggert | 2025-07-15 22:47:16 -0700 |
| commit | 42548c25f74d4509a1d29cb419e1b2f7b4a12c10 (patch) | |
| tree | 9707cf94eed9477fe53a6049dac67715a3b35186 /java/AndroidManifest.xml.in | |
| parent | a30372f42b2066df3172bedb5702a57e4d52ddd1 (diff) | |
| download | emacs-42548c25f74d4509a1d29cb419e1b2f7b4a12c10.tar.gz emacs-42548c25f74d4509a1d29cb419e1b2f7b4a12c10.zip | |
Fix insert-file-contents overlap check
In commit 61a8ce0280668980a4452b112103c9bc879e1f49 I mistakenly
focused on overlap in the buffer. The code also needs to check
for overlap in the inserted file data.
Problem reported by Gerd Möllmann (Bug#79020).
* src/fileio.c (Finsert_file_contents): Prevent overlap in both
the buffer head and tail, and in the inserted file’s head and tail.
Also, shrink the file’s head if the file shrank to be smaller
than its head.
Diffstat (limited to 'java/AndroidManifest.xml.in')
0 files changed, 0 insertions, 0 deletions