]> git.kaiwu.me - quickjs.git/commitdiff
removed infinite loop in unicode_script() (Kayyo321)
authorFabrice Bellard <fabrice@bellard.org>
Mon, 26 Oct 2026 10:38:29 +0000 (11:38 +0100)
committerFabrice Bellard <fabrice@bellard.org>
Mon, 26 Oct 2026 10:38:29 +0000 (11:38 +0100)
libunicode.c

index f3f75cc769fadf72901047d0acffc54446a16b27..70475f5a5581dbd7798c215fbd286547ebe73985 100644 (file)
@@ -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)