diff options
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -661,7 +661,7 @@ void luaV_concat (lua_State *L, int total) { | |||
661 | /* collect total length and number of strings */ | 661 | /* collect total length and number of strings */ |
662 | for (n = 1; n < total && tostring(L, s2v(top - n - 1)); n++) { | 662 | for (n = 1; n < total && tostring(L, s2v(top - n - 1)); n++) { |
663 | size_t l = tsslen(tsvalue(s2v(top - n - 1))); | 663 | size_t l = tsslen(tsvalue(s2v(top - n - 1))); |
664 | if (l_unlikely(l >= (MAX_SIZE/sizeof(char)) - tl)) { | 664 | if (l_unlikely(l >= MAX_SIZE - sizeof(TString) - tl)) { |
665 | L->top.p = top - total; /* pop strings to avoid wasting stack */ | 665 | L->top.p = top - total; /* pop strings to avoid wasting stack */ |
666 | luaG_runerror(L, "string length overflow"); | 666 | luaG_runerror(L, "string length overflow"); |
667 | } | 667 | } |