mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
[REGEX] fix bug in matcher that was causing segfault with chars of 0x80 and over.
This commit is contained in:
parent
7def56f1e4
commit
fae2c49259
@ -375,7 +375,7 @@ static struct dfa_state *_step_matcher(struct dm_regex *m, int c, struct dfa_sta
|
||||
struct dfa_state *ns;
|
||||
|
||||
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]))
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user