18 lines
541 B
Diff
18 lines
541 B
Diff
From: Petr Písař <ppisar@redhat.com>
|
|
Subject: Fix an out-of-buffer read in search_brace()/lexi()
|
|
Bug-Debian: https://bugs.debian.org/1049366
|
|
Forwarded: https://savannah.gnu.org/bugs/index.php?64503
|
|
|
|
--- a/src/indent.c
|
|
+++ b/src/indent.c
|
|
@@ -145,8 +145,8 @@
|
|
parser_state_tos->search_brace = false;
|
|
bp_save = buf_ptr;
|
|
be_save = buf_end;
|
|
- buf_ptr = save_com.ptr;
|
|
need_chars (&save_com, 1);
|
|
+ buf_ptr = save_com.ptr;
|
|
buf_end = save_com.end;
|
|
save_com.end = save_com.ptr; /* make save_com empty */
|
|
}
|