diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-06-04 12:55:43 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-06-04 12:55:43 -0300 |
commit | d05fe48bfdd89956c0ebd115dca0fb115aa28dd6 (patch) | |
tree | 2d493691527ee7e47748778f6be14dbd5809095c /lundump.c | |
parent | 519c57d597625f010d1bbb3f91bac5d193111060 (diff) | |
download | lua-d05fe48bfdd89956c0ebd115dca0fb115aa28dd6.tar.gz lua-d05fe48bfdd89956c0ebd115dca0fb115aa28dd6.tar.bz2 lua-d05fe48bfdd89956c0ebd115dca0fb115aa28dd6.zip |
Loading a binary chunk should not break assertions
Although the execution of a bad binary chunk can crash the interpreter,
simply loading it should be safe.
Diffstat (limited to 'lundump.c')
-rw-r--r-- | lundump.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -234,7 +234,7 @@ static void loadConstants (LoadState *S, Proto *f) { | |||
234 | f->source = NULL; | 234 | f->source = NULL; |
235 | break; | 235 | break; |
236 | } | 236 | } |
237 | default: lua_assert(0); | 237 | default: error(S, "invalid constant"); |
238 | } | 238 | } |
239 | } | 239 | } |
240 | } | 240 | } |