Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142722699
D10113.id27004.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
748 B
Referenced Files
None
Subscribers
None
D10113.id27004.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D10113: bsdgrep(1): Fix errors with invalid expressions like grep -E { /dev/null
Attached
Detach File
Event Timeline
Log In to Comment