From a1884f7a85cbee5a67cf48c9e7b088fdea8b8b38 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 15 Nov 2025 18:12:57 -0500 Subject: Fix for potential issue with codepoint names --- src/stdlib/text.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/stdlib/text.c') diff --git a/src/stdlib/text.c b/src/stdlib/text.c index f323d88d..8e800c8a 100644 --- a/src/stdlib/text.c +++ b/src/stdlib/text.c @@ -1605,6 +1605,7 @@ static INLINE const char *codepoint_name(ucs4_t c) { char *found_name = unicode_character_name(c, name); if (found_name) return found_name; const uc_block_t *block = uc_block(c); + if (!block) return "???"; assert(block); return String(block->name, "-", hex(c, .no_prefix = true, .uppercase = true)); } -- cgit v1.2.3