Bug: 'luaD_seterrorobj' should not raise errors · lua/lua@25da574 · GitHub
Skip to content

Commit 25da574

Browse files
committed
Bug: 'luaD_seterrorobj' should not raise errors
This function can be called unprotected, so it should not raise any kind of errors. (It could raise a memory-allocation error when creating a message).
1 parent f5e55be commit 25da574

3 files changed

Lines changed: 13 additions & 6 deletions

File tree

‎ldo.c‎

Lines changed: 11 additions & 5 deletions

‎ldo.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
/* type of protected functions, to be ran by 'runprotected' */
6161
typedef void (*Pfunc) (lua_State *L, void *ud);
6262

63+
LUAI_FUNC l_noret luaD_errerr (lua_State *L);
6364
LUAI_FUNC void luaD_seterrorobj (lua_State *L, int errcode, StkId oldtop);
6465
LUAI_FUNC int luaD_protectedparser (lua_State *L, ZIO *z, const char *name,
6566
const char *mode);

‎lstate.c‎

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)