diff options
| author | Roberto I <roberto@inf.puc-rio.br> | 2025-10-10 15:28:41 -0300 |
|---|---|---|
| committer | Roberto I <roberto@inf.puc-rio.br> | 2025-10-10 15:28:41 -0300 |
| commit | 7a92f3f99a26d9e51be40b744ed4fab0b50ecaa5 (patch) | |
| tree | d50948f6b4bebdd23a56ac00c96ee8c47c574d82 /lcode.c | |
| parent | 3347c9d32d4d91b6139bff475c78cf0c4796e2a7 (diff) | |
| download | lua-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 'lcode.c')
0 files changed, 0 insertions, 0 deletions
