[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 1a8b3b6390: Fix mis-parsing of certain malformed XBM files
From: |
Po Lu |
Subject: |
master 1a8b3b6390: Fix mis-parsing of certain malformed XBM files |
Date: |
Thu, 17 Feb 2022 20:39:31 -0500 (EST) |
branch: master
commit 1a8b3b639063d0662298c55bd20dc3d129e19476
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
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 d012fcea6a..e2ba744e0a 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 == '_')
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 1a8b3b6390: Fix mis-parsing of certain malformed XBM files,
Po Lu <=