mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
BUG: shift overflow in utf-8 decode
An initial byte \xFF will ask for 7 continuation bytes, and then the shift by (count * 5) will try to shift 35 bits.
This commit is contained in:
parent
7c40c5edb2
commit
10eb89d114
3 changed files with 18 additions and 3 deletions
2
makefile
2
makefile
|
|
@ -60,7 +60,7 @@ CWARNS= $(CWARNSCPP) $(CWARNSC) $(CWARNGCC)
|
|||
# create problems; some are only available in newer gcc versions. To
|
||||
# use some of them, we also have to define an environment variable
|
||||
# ASAN_OPTIONS="detect_invalid_pointer_pairs=2".
|
||||
# -fsanitize=undefined
|
||||
# -fsanitize=undefined (you may need to add "-lubsan" to libs)
|
||||
# -fsanitize=pointer-subtract -fsanitize=address -fsanitize=pointer-compare
|
||||
# TESTS= -DLUA_USER_H='"ltests.h"' -Og -g
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue