diff options
| author | Roberto I <roberto@inf.puc-rio.br> | 2026-02-18 13:24:04 -0300 |
|---|---|---|
| committer | Roberto I <roberto@inf.puc-rio.br> | 2026-02-18 13:24:04 -0300 |
| commit | 10eb89d1141dc528806b32401e408e36fb2f3bf5 (patch) | |
| tree | c1d33a4c965758cd9b39ad2fdc3c181295a05ab8 /makefile | |
| parent | 7c40c5edb2364745bf0add6feb02c7c90dfbae3e (diff) | |
| download | lua-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-- | makefile | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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 | ||
