diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2016-12-16 09:34:02 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2016-12-16 09:34:31 -0800 |
commit | ea7015f681a96287ebb7315f897ee1474b0ffbe9 (patch) | |
tree | 4c7ff87b83ceb224d0d5be765940a6b3a8df7ed0 /modules/regex | |
parent | d721ea9f8163e38c628d45190176b916ab6618f2 (diff) | |
download | gnulib-ea7015f681a96287ebb7315f897ee1474b0ffbe9.tar.gz |
regex: fix integer-overflow bug in never-used code
Problem reported by Clément Pit–Claudel in:
http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00654.html
* lib/regex_internal.h: Include intprops.h.
* lib/regexec.c (re_search_2_stub): Use it to avoid undefined
behavior on integer overflow.
* modules/regex (Depends-on): Add intprops.
Diffstat (limited to 'modules/regex')
-rw-r--r-- | modules/regex | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/regex b/modules/regex index c5ae1b255f..e1c9b5887b 100644 --- a/modules/regex +++ b/modules/regex @@ -18,6 +18,7 @@ ssize_t alloca-opt [test $ac_use_included_regex = yes] btowc [test $ac_use_included_regex = yes] gettext-h [test $ac_use_included_regex = yes] +intprops [test $ac_use_included_regex = yes] lock [test "$ac_cv_gnu_library_2_1:$ac_use_included_regex" = no:yes] memcmp [test $ac_use_included_regex = yes] memmove [test $ac_use_included_regex = yes] |