Length of external strings must fit in Lua integer

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

No files matched your search

+2
View File
@@ -3942,6 +3942,8 @@ holding the string content,
and @id{len} is the length of the string.
The string should have a zero at its end,
that is, the condition @T{s[len] == '\0'} should hold.
As with any string in Lua,
the length must fit in a Lua integer.
If @id{falloc} is different from @id{NULL},
that function will be called by Lua