1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

[REGEX] Parse regexes that contain chars with value > 0x80

This is a long standing issue.  Fixed by casting a char value to
unsigned char before using it as an index into a bitset.
This commit is contained in:
Joe Thornber 2010-08-09 10:29:42 +00:00
parent 95aa395ddd
commit 7def56f1e4

View File

@ -271,7 +271,7 @@ static int _rx_get_token(struct parse_sp *ps)
ps->type = 0; ps->type = 0;
ps->cursor = ptr + 1; ps->cursor = ptr + 1;
dm_bit_clear_all(ps->charset); dm_bit_clear_all(ps->charset);
dm_bit_set(ps->charset, (int) *ptr); dm_bit_set(ps->charset, (int) (unsigned char) *ptr);
break; break;
} }