From: Fabrice Bellard Date: Mon, 26 Oct 2026 10:38:29 +0000 (+0100) Subject: removed infinite loop in unicode_script() (Kayyo321) X-Git-Url: https://git.kaiwu.me/?a=commitdiff_plain;h=817509a87c3c0af362df576574784bae0dae8129;p=quickjs.git removed infinite loop in unicode_script() (Kayyo321) --- diff --git a/libunicode.c b/libunicode.c index f3f75cc..70475f5 100644 --- a/libunicode.c +++ b/libunicode.c @@ -1397,7 +1397,7 @@ int unicode_script(CharRange *cr, cr_free(cr1); cr_free(cr2); } - goto fail; + return -1; } #define M(id) (1U << UNICODE_GC_ ## id)