aboutsummaryrefslogtreecommitdiff
path: root/src/lj_errmsg.h
diff options
context:
space:
mode:
authorMike Pall <mike>2021-07-19 16:45:26 +0200
committerMike Pall <mike>2021-07-19 16:45:26 +0200
commita689e9dc430613755ae49b0c46cb9ba6c59d0006 (patch)
treedc0fd51dd671ca01d024e00b7f7110d8f0e6f2f1 /src/lj_errmsg.h
parent02bcbea8b0f1b30b75460f31fb8749fec55d1e2e (diff)
downloadluajit-a689e9dc430613755ae49b0c46cb9ba6c59d0006.tar.gz
luajit-a689e9dc430613755ae49b0c46cb9ba6c59d0006.tar.bz2
luajit-a689e9dc430613755ae49b0c46cb9ba6c59d0006.zip
String buffers, part 2f: Prevent self-put of buffer.
Sponsored by fmad.io.
Diffstat (limited to 'src/lj_errmsg.h')
-rw-r--r--src/lj_errmsg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lj_errmsg.h b/src/lj_errmsg.h
index 56be4bb9..89e67496 100644
--- a/src/lj_errmsg.h
+++ b/src/lj_errmsg.h
@@ -182,6 +182,7 @@ ERRDEF(FFI_NYICALL, "NYI: cannot call this C function (yet)")
182 182
183#if LJ_HASBUFFER 183#if LJ_HASBUFFER
184/* String buffer errors. */ 184/* String buffer errors. */
185ERRDEF(BUFFER_SELF, "cannot put buffer into itself")
185ERRDEF(BUFFER_BADOPT, "bad options table") 186ERRDEF(BUFFER_BADOPT, "bad options table")
186ERRDEF(BUFFER_BADENC, "cannot serialize " LUA_QS) 187ERRDEF(BUFFER_BADENC, "cannot serialize " LUA_QS)
187ERRDEF(BUFFER_BADDEC, "cannot deserialize tag 0x%02x") 188ERRDEF(BUFFER_BADDEC, "cannot deserialize tag 0x%02x")