diff options
author | Yuri Pankov <yuri.pankov@nexenta.com> | 2019-09-21 11:49:32 +0300 |
---|---|---|
committer | Dan McDonald <danmcd@joyent.com> | 2019-10-22 11:10:03 -0400 |
commit | 1603eda21695ca85bfde0e5c75a27d94ac4ce4ff (patch) | |
tree | 15ed03687d2d6e662c6eaee0f49666da1373cf18 /usr/src/lib/libc/port/regex/regcomp.c | |
parent | 62e7498000cb79c72fafb7270dbc3beb8a41863d (diff) | |
download | illumos-gate-1603eda21695ca85bfde0e5c75a27d94ac4ce4ff.tar.gz |
8908 regcomp: reduce size of bitmap for multibyte locales
Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/lib/libc/port/regex/regcomp.c')
-rw-r--r-- | usr/src/lib/libc/port/regex/regcomp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/lib/libc/port/regex/regcomp.c b/usr/src/lib/libc/port/regex/regcomp.c index 8df8c337cd..d4ab5b40b6 100644 --- a/usr/src/lib/libc/port/regex/regcomp.c +++ b/usr/src/lib/libc/port/regex/regcomp.c @@ -1,6 +1,6 @@ /* * Copyright 2013 Garrett D'Amore <garrett@damore.org> - * Copyright 2010 Nexenta Systems, Inc. All rights reserved. + * Copyright 2019 Nexenta by DDN, Inc. All rights reserved. * Copyright 2012 Milan Jurik. All rights reserved. * Copyright (c) 1992, 1993, 1994 Henry Spencer. * Copyright (c) 1992, 1993, 1994 @@ -1778,7 +1778,7 @@ computejumps(struct parse *p, struct re_guts *g) if (p->error != 0) return; - g->charjump = (int *)malloc((NC + 1) * sizeof (int)); + g->charjump = (int *)malloc((NC_MAX + 1) * sizeof (int)); if (g->charjump == NULL) /* Not a fatal error */ return; /* Adjust for signed chars, if necessary */ |