From 1a8b3b639063d0662298c55bd20dc3d129e19476 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Fri, 18 Feb 2022 09:37:36 +0800 Subject: [PATCH] Fix mis-parsing of certain malformed XBM files * src/image.c (xbm_scan): Return error on a character literal that doesn't start with "\x". --- src/image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/image.c b/src/image.c index d012fcea6a7..e2ba744e0a3 100644 --- a/src/image.c +++ b/src/image.c @@ -3719,9 +3719,9 @@ xbm_scan (char **s, char *end, char *sval, int *ival) overflow |= INT_MULTIPLY_WRAPV (value, 16, &value); value += digit; } - - return 0; } + + return 0; } else if (c_isalpha (c) || c == '_') { -- 2.39.5