Disable loading bytecode with an extra header (BOM or #!).

This commit is contained in:
Mike Pall
2012-05-03 19:04:44 +02:00
parent eec0d80d1b
commit 53a285c0c3
2 changed files with 18 additions and 1 deletions

View File

@@ -139,6 +139,7 @@ ERRDEF(XFOR, LUA_QL("=") " or " LUA_QL("in") " expected")
/* Bytecode reader errors. */
ERRDEF(BCFMT, "cannot load incompatible bytecode")
ERRDEF(BCBAD, "cannot load malformed bytecode")
ERRDEF(BCHEAD, "attempt to load bytecode with extra header")
#if LJ_HASFFI
/* FFI errors. */