mirror of
git://git.musl-libc.org/musl
synced 2025-01-24 07:33:15 +00:00
fix erroneous acceptance of f4 9x xx xx code sequences by utf-8 decoder
the DFA table controlling accepted ranges for the f4 prefix used an incorrect upper bound of 0xa0 where it should have been 0x90, allowing such sequences to be accepted and decoded as non-Unicode-scalar values 0x110000 through 0x11ffff.
This commit is contained in:
parent
11ddc314b5
commit
39db00afad
@ -9,7 +9,7 @@
|
||||
| x )
|
||||
#define F(x) ( ( x>=5 ? 0 : \
|
||||
x==0 ? R(0x90,0xc0) : \
|
||||
x==4 ? R(0x80,0xa0) : \
|
||||
x==4 ? R(0x80,0x90) : \
|
||||
R(0x80,0xc0) ) \
|
||||
| ( R(0x80,0xc0) >> 6 ) \
|
||||
| ( R(0x80,0xc0) >> 12 ) \
|
||||
|
Loading…
Reference in New Issue
Block a user