String buffers, part 2f: Prevent self-put of buffer.

Sponsored by fmad.io.
This commit is contained in:
Mike Pall
2021-07-19 16:45:26 +02:00
parent 02bcbea8b0
commit a689e9dc43
3 changed files with 6 additions and 1 deletions

View File

@@ -182,6 +182,7 @@ ERRDEF(FFI_NYICALL, "NYI: cannot call this C function (yet)")
#if LJ_HASBUFFER
/* String buffer errors. */
ERRDEF(BUFFER_SELF, "cannot put buffer into itself")
ERRDEF(BUFFER_BADOPT, "bad options table")
ERRDEF(BUFFER_BADENC, "cannot serialize " LUA_QS)
ERRDEF(BUFFER_BADDEC, "cannot deserialize tag 0x%02x")