Length of external strings must fit in Lua integer

(As the length of any string in Lua.)
This commit is contained in:
Roberto Ierusalimschy
2024-06-24 12:03:59 -03:00
parent 0f7025dcae
commit c1dc08e8e8
4 changed files with 9 additions and 4 deletions

View File

@@ -109,7 +109,7 @@ static size_t loadVarint (LoadState *S, size_t limit) {
static size_t loadSize (LoadState *S) {
return loadVarint(S, MAX_SIZET);
return loadVarint(S, MAX_SIZE);
}