Page MenuHomeFreeBSD

D10113.id27004.diff
No OneTemporary

D10113.id27004.diff

Index: usr.bin/grep/regex/tre-fastmatch.c
===================================================================
--- usr.bin/grep/regex/tre-fastmatch.c
+++ usr.bin/grep/regex/tre-fastmatch.c
@@ -338,7 +338,7 @@
* Fills in the good suffix table for SB/MB strings.
*/
#define FILL_BMGS \
- if (!fg->hasdot) \
+ if (fg->len > 0 && !fg->hasdot) \
{ \
fg->sbmGs = xmalloc(fg->len * sizeof(int)); \
if (!fg->sbmGs) \
@@ -354,7 +354,7 @@
* Fills in the good suffix table for wide strings.
*/
#define FILL_BMGS_WIDE \
- if (!fg->hasdot) \
+ if (fg->wlen > 0 && !fg->hasdot) \
{ \
fg->bmGs = xmalloc(fg->wlen * sizeof(int)); \
if (!fg->bmGs) \

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 23, 4:57 PM (14 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27887786
Default Alt Text
D10113.id27004.diff (748 B)

Event Timeline