diff options
| -rw-r--r-- | lstrlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -1726,7 +1726,7 @@ static int str_packsize (lua_State *L) { | |||
| 1726 | luaL_argcheck(L, opt != Kstring && opt != Kzstr, 1, | 1726 | luaL_argcheck(L, opt != Kstring && opt != Kzstr, 1, |
| 1727 | "variable-length format"); | 1727 | "variable-length format"); |
| 1728 | size += ntoalign; /* total space used by option */ | 1728 | size += ntoalign; /* total space used by option */ |
| 1729 | luaL_argcheck(L, totalsize <= LUA_MAXINTEGER - size, | 1729 | luaL_argcheck(L, totalsize <= MAX_SIZE - size, |
| 1730 | 1, "format result too large"); | 1730 | 1, "format result too large"); |
| 1731 | totalsize += size; | 1731 | totalsize += size; |
| 1732 | } | 1732 | } |
