aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorRoberto I <roberto@inf.puc-rio.br>2026-02-18 13:24:04 -0300
committerRoberto I <roberto@inf.puc-rio.br>2026-02-18 13:24:04 -0300
commit10eb89d1141dc528806b32401e408e36fb2f3bf5 (patch)
treec1d33a4c965758cd9b39ad2fdc3c181295a05ab8 /makefile
parent7c40c5edb2364745bf0add6feb02c7c90dfbae3e (diff)
downloadlua-10eb89d1141dc528806b32401e408e36fb2f3bf5.tar.gz
lua-10eb89d1141dc528806b32401e408e36fb2f3bf5.tar.bz2
lua-10eb89d1141dc528806b32401e408e36fb2f3bf5.zip
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.
Diffstat (limited to 'makefile')
-rw-r--r--makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/makefile b/makefile
index 8674519f..fa165bca 100644
--- a/makefile
+++ b/makefile
@@ -60,7 +60,7 @@ CWARNS= $(CWARNSCPP) $(CWARNSC) $(CWARNGCC)
60# create problems; some are only available in newer gcc versions. To 60# create problems; some are only available in newer gcc versions. To
61# use some of them, we also have to define an environment variable 61# use some of them, we also have to define an environment variable
62# ASAN_OPTIONS="detect_invalid_pointer_pairs=2". 62# ASAN_OPTIONS="detect_invalid_pointer_pairs=2".
63# -fsanitize=undefined 63# -fsanitize=undefined (you may need to add "-lubsan" to libs)
64# -fsanitize=pointer-subtract -fsanitize=address -fsanitize=pointer-compare 64# -fsanitize=pointer-subtract -fsanitize=address -fsanitize=pointer-compare
65# TESTS= -DLUA_USER_H='"ltests.h"' -Og -g 65# TESTS= -DLUA_USER_H='"ltests.h"' -Og -g
66 66