]> granicus.if.org Git - neomutt/commitdiff
check range of uuencoded char
authorRichard Russon <rich@flatcap.org>
Sat, 1 Jun 2019 10:50:18 +0000 (11:50 +0100)
committerRichard Russon <rich@flatcap.org>
Sat, 1 Jun 2019 23:06:23 +0000 (00:06 +0100)
Coverity: CID 180829

handler.c

index 0b86ea2466455dddba41a1a415303daaa0b4e3d5..eb3dd10f86cde850478c75d3e69381fce4fb9122 100644 (file)
--- a/handler.c
+++ b/handler.c
@@ -356,7 +356,7 @@ static void decode_quoted(struct State *s, long len, bool istext, iconv_t cd)
  */
 static unsigned char decode_byte(char ch)
 {
-  if (ch == 96)
+  if ((ch < 32) || (ch > 95))
     return 0;
   return ch - 32;
 }