aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--posix/bug-regex33.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 9e58262..2e8308e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
+
+ * posix/bug-regex33.c: Fix build after regex sync.
+
2018-07-04 Carlos O'Donell <carlos@redhat.com>
[BZ #23164]
diff --git a/posix/bug-regex33.c b/posix/bug-regex33.c
index 0313cb4..015b73c 100644
--- a/posix/bug-regex33.c
+++ b/posix/bug-regex33.c
@@ -23,7 +23,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include "regex_internal.h"
static int
do_test (void)
@@ -39,8 +38,9 @@ do_test (void)
memset (&r, 0, sizeof (r));
memset (&s, 0, sizeof (s));
- /* The bug cannot be reproduced without initialized fastmap. */
- r.fastmap = malloc (SBC_MAX);
+ /* The bug cannot be reproduced without initialized fastmap (it is SBC_MAX
+ value from regex_internal.h). */
+ r.fastmap = malloc (UCHAR_MAX + 1);
/* 圭 */
re_compile_pattern ("\xb7\xbd", 2, &r);