From 473cb199e7741e88f210b904fecccf0129b4da59 Mon Sep 17 00:00:00 2001 From: Luke Gorrie Date: Thu, 10 May 2018 10:11:49 +0000 Subject: [PATCH] lj_ctype.c: Avoid crash when printing unprintable ctype IDs --- src/lj_ctype.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lj_ctype.c b/src/lj_ctype.c index fc9563b398..86abbbc146 100644 --- a/src/lj_ctype.c +++ b/src/lj_ctype.c @@ -529,8 +529,8 @@ static void ctype_repr(CTRepr *ctr, CTypeID id) ctype_appc(ctr, ')'); break; default: - lua_assert(0); - break; + ctr->ok = 0; + return; } ct = ctype_get(ctr->cts, ctype_cid(info)); }