aboutsummaryrefslogtreecommitdiff
path: root/lstring.c
diff options
context:
space:
mode:
authorRoberto I <roberto@inf.puc-rio.br>2025-10-10 15:28:41 -0300
committerRoberto I <roberto@inf.puc-rio.br>2025-10-10 15:28:41 -0300
commit7a92f3f99a26d9e51be40b744ed4fab0b50ecaa5 (patch)
treed50948f6b4bebdd23a56ac00c96ee8c47c574d82 /lstring.c
parent3347c9d32d4d91b6139bff475c78cf0c4796e2a7 (diff)
downloadlua-7a92f3f99a26d9e51be40b744ed4fab0b50ecaa5.tar.gz
lua-7a92f3f99a26d9e51be40b744ed4fab0b50ecaa5.tar.bz2
lua-7a92f3f99a26d9e51be40b744ed4fab0b50ecaa5.zip
Change in dumping of NULL strings
When dumping a string, adding 2 to its size may overflow a size_t for external strings, which may not have a header. (Adding 1 is Ok, because all strings end with a '\0' not included in their size.) The new method for saving NULL strings code them as a repeated string, using the reserved index 0.
Diffstat (limited to 'lstring.c')
0 files changed, 0 insertions, 0 deletions