aboutsummaryrefslogtreecommitdiff
path: root/src/lj_errmsg.h
diff options
context:
space:
mode:
authorMike Pall <mike>2012-05-03 19:04:44 +0200
committerMike Pall <mike>2012-05-03 19:04:44 +0200
commit53a285c0c3544ff5dea7c67b741c3c2d06d22b47 (patch)
treebbe5e5a6d385f872cae1f5b4ae52d98b3fd6c489 /src/lj_errmsg.h
parenteec0d80d1b9767beef0c38168b772a2b49175268 (diff)
downloadluajit-53a285c0c3544ff5dea7c67b741c3c2d06d22b47.tar.gz
luajit-53a285c0c3544ff5dea7c67b741c3c2d06d22b47.tar.bz2
luajit-53a285c0c3544ff5dea7c67b741c3c2d06d22b47.zip
Disable loading bytecode with an extra header (BOM or #!).
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 83c69ea8..d1db4386 100644
--- a/src/lj_errmsg.h
+++ b/src/lj_errmsg.h
@@ -139,6 +139,7 @@ ERRDEF(XFOR, LUA_QL("=") " or " LUA_QL("in") " expected")
139/* Bytecode reader errors. */ 139/* Bytecode reader errors. */
140ERRDEF(BCFMT, "cannot load incompatible bytecode") 140ERRDEF(BCFMT, "cannot load incompatible bytecode")
141ERRDEF(BCBAD, "cannot load malformed bytecode") 141ERRDEF(BCBAD, "cannot load malformed bytecode")
142ERRDEF(BCHEAD, "attempt to load bytecode with extra header")
142 143
143#if LJ_HASFFI 144#if LJ_HASFFI
144/* FFI errors. */ 145/* FFI errors. */