]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix mis-parsing of certain malformed XBM files
authorPo Lu <luangruo@yahoo.com>
Fri, 18 Feb 2022 01:37:36 +0000 (09:37 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 18 Feb 2022 01:37:36 +0000 (09:37 +0800)
* src/image.c (xbm_scan): Return error on a character literal
that doesn't start with "\x".

src/image.c

index d012fcea6a787e1cba3b5bca8dc2c330d78e7c62..e2ba744e0a3a48d0853fc3b619828e8245a61376 100644 (file)
@@ -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 == '_')
     {