aboutsummaryrefslogtreecommitdiff
path: root/lundump.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-06-04 12:55:43 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-06-04 12:55:43 -0300
commitd05fe48bfdd89956c0ebd115dca0fb115aa28dd6 (patch)
tree2d493691527ee7e47748778f6be14dbd5809095c /lundump.c
parent519c57d597625f010d1bbb3f91bac5d193111060 (diff)
downloadlua-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lundump.c b/lundump.c
index fccded7d..b69ec336 100644
--- a/lundump.c
+++ b/lundump.c
@@ -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}