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