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

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