about summary refs log tree commit diff
path: root/posix
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2020-08-04 23:45:27 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2020-08-04 23:47:01 -0700
commit2cc478ed1be82711a6cac15aae683530b2e6732b (patch)
tree80eab9f33a44593418c5a1f585ece80ebd454afd /posix
parent70c609f30311a4bcd6289b616adaaad4b42ed4a8 (diff)
downloadglibc-2cc478ed1be82711a6cac15aae683530b2e6732b.tar.gz
glibc-2cc478ed1be82711a6cac15aae683530b2e6732b.tar.xz
glibc-2cc478ed1be82711a6cac15aae683530b2e6732b.zip
Copy regex_internal.h from Gnulib
Sync this file from Gnulib, thus incorporating the following
fix for a bug with regexps with 16 or more subexpressions:
* posix/regex_internal.h (struct re_backref_cache_entry):
Use bitset_word_t as the type of eps_reachable_subexps_map,
instead of unsigned short int.  This fixes a bug I introduced
to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
Remove unused member 'unused'.
Diffstat (limited to 'posix')
-rw-r--r--posix/regex_internal.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/posix/regex_internal.h b/posix/regex_internal.h
index e9aa74bf33..8c42586c42 100644
--- a/posix/regex_internal.h
+++ b/posix/regex_internal.h
@@ -591,9 +591,8 @@ struct re_backref_cache_entry
   Idx str_idx;
   Idx subexp_from;
   Idx subexp_to;
+  bitset_word_t eps_reachable_subexps_map;
   char more;
-  char unused;
-  unsigned short int eps_reachable_subexps_map;
 };
 
 typedef struct