mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
[REGEX] fix bug in matcher that was causing segfault with chars of 0x80 and over.
This commit is contained in:
parent
d52e9c7704
commit
1b87c6ade7
@ -375,7 +375,7 @@ static struct dfa_state *_step_matcher(struct dm_regex *m, int c, struct dfa_sta
|
|||||||
struct dfa_state *ns;
|
struct dfa_state *ns;
|
||||||
|
|
||||||
if (!(ns = cs->lookup[(unsigned char) c]))
|
if (!(ns = cs->lookup[(unsigned char) c]))
|
||||||
_calc_state(m, cs, c);
|
_calc_state(m, cs, (unsigned char) c);
|
||||||
|
|
||||||
if (!(ns = cs->lookup[(unsigned char) c]))
|
if (!(ns = cs->lookup[(unsigned char) c]))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user