1
0
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:
Joe Thornber 2010-08-09 10:30:52 +00:00
parent 7def56f1e4
commit fae2c49259

View File

@ -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;