bsdgrep: Work-around for segmentation fault.
Fix by David Carlier. Obtained from: HardenedBSD PR: 167921 MFC after: 1 month
This commit is contained in:
parent
fd29269606
commit
55a803b32a
@ -727,7 +727,7 @@ badpat:
|
||||
for (unsigned int i = 0; i < fg->len; i++)
|
||||
if (fg->pattern[i] == '\\')
|
||||
escaped = !escaped;
|
||||
else if (fg->pattern[i] == '.' && escaped)
|
||||
else if (fg->pattern[i] == '.' && fg->escmap && escaped)
|
||||
{
|
||||
fg->escmap[i] = true;
|
||||
escaped = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user