projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f9fd1d
)
; Fix bug in regexp debug code
author
Mattias Engdegård
<mattiase@acm.org>
Fri, 21 Jul 2023 09:56:42 +0000
(11:56 +0200)
committer
Mattias Engdegård
<mattiase@acm.org>
Fri, 21 Jul 2023 12:49:17 +0000
(14:49 +0200)
* src/regex-emacs.c (print_partial_compiled_pattern):
Only the 7 bottom bits of the first byte form the bitmap size.
src/regex-emacs.c
patch
|
blob
|
history
diff --git
a/src/regex-emacs.c
b/src/regex-emacs.c
index 9e298b81ebb65b58b5d0bed26c33a6f4ad694a81..51fc2b0558d6a8b47532e5c7e278b239e8a627d4 100644
(file)
--- a/
src/regex-emacs.c
+++ b/
src/regex-emacs.c
@@
-554,7
+554,7
@@
print_partial_compiled_pattern (re_char *start, re_char *end)
fprintf (stderr, "/charset [%s",
(re_opcode_t) *(p - 1) == charset_not ? "^" : "");
- if (p +
*p
>= pend)
+ if (p +
(*p & 0x7f)
>= pend)
fputs (" !extends past end of pattern! ", stderr);
for (c = 0; c < 256; c++)