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:
parent
95aa395ddd
commit
7def56f1e4
@ -271,7 +271,7 @@ static int _rx_get_token(struct parse_sp *ps)
|
||||
ps->type = 0;
|
||||
ps->cursor = ptr + 1;
|
||||
dm_bit_clear_all(ps->charset);
|
||||
dm_bit_set(ps->charset, (int) *ptr);
|
||||
dm_bit_set(ps->charset, (int) (unsigned char) *ptr);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user