diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2016-11-26 00:19:08 -0800 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2016-11-26 00:20:26 -0800 |
| commit | b7f3a3055c92010afde318c1108b02e4424a3bac (patch) | |
| tree | 87c216fe495dc9fb716a5c05759911b746a29657 /src/xml.c | |
| parent | caec5c06caa854a5e9d2001bd8ef7199a0b7540c (diff) | |
| download | emacs-b7f3a3055c92010afde318c1108b02e4424a3bac.tar.gz | |
Don't access pointers to freed storage in regex.c
Remove __BOUNDED_POINTERS__ code, which does not work with
-fcheck-pointer-bound and which has undefined behavior anyway.
Problem found when trying to port to gcc -fcheck-pointer-bounds.
(This code was removed from glibc and gnulib regex.c many years ago.)
* src/regex.c (ELSE_EXTEND_BUFFER_HIGH_BOUND): Remove.
(EXTEND_BUFFER): Use a more-portable approach that avoids
undefined behavior due to inspecting pointers to freed storage.
Diffstat (limited to 'src/xml.c')
0 files changed, 0 insertions, 0 deletions
