Page MenuHomeFreeBSD

D10113.1795482194.diff
No OneTemporary

Authored By
Unknown
Size
761 B
Referenced Files
None
Subscribers
None

D10113.1795482194.diff

Index: head/usr.bin/grep/regex/tre-fastmatch.c
===================================================================
--- head/usr.bin/grep/regex/tre-fastmatch.c
+++ head/usr.bin/grep/regex/tre-fastmatch.c
@@ -337,7 +337,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 = malloc(fg->len * sizeof(int)); \
if (!fg->sbmGs) \
@@ -353,7 +353,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 = malloc(fg->wlen * sizeof(int)); \
if (!fg->bmGs) \

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 24, 1:03 AM (23 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41943662
Default Alt Text
D10113.1795482194.diff (761 B)

Event Timeline