From: Po Lu Date: Fri, 18 Feb 2022 01:37:36 +0000 (+0800) Subject: Fix mis-parsing of certain malformed XBM files X-Git-Tag: emacs-29.0.90~2258 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1a8b3b639063d0662298c55bd20dc3d129e19476;p=emacs.git 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". --- 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 == '_') {