diff options
author | Noam Postavsky <npostavs@gmail.com> | 2016-11-05 16:51:53 -0400 |
---|---|---|
committer | Noam Postavsky <npostavs@gmail.com> | 2017-01-08 18:45:52 -0500 |
commit | 9a19f26cd796c7321f659a8dbea5296b0eeea51d (patch) | |
tree | 4ad260064fe3688a22f269896233d3e5adb35169 /lib/stdio-impl.h | |
parent | 88a501b30d18bf1965f5416df477521ed2ca3c89 (diff) | |
download | emacs-9a19f26cd796c7321f659a8dbea5296b0eeea51d.tar.gz emacs-9a19f26cd796c7321f659a8dbea5296b0eeea51d.tar.bz2 emacs-9a19f26cd796c7321f659a8dbea5296b0eeea51d.zip |
Fix computation of regex stack limit
The regex stack limit was being computed as the number of stack entries,
whereas it was being compared with the current size as measured in
bytes. This could cause indefinite looping when nearing the stack limit
if re_max_failures happened not to be a multiple of sizeof
fail_stack_elt_t (Bug #24751).
* src/regex.c (GROW_FAIL_STACK): Compute both current stack size and
limit as numbers of stack entries.
Diffstat (limited to 'lib/stdio-impl.h')
0 files changed, 0 insertions, 0 deletions