]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Add tests for broken qp decoding
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 20 Sep 2021 19:21:49 +0000 (20:21 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 20 Sep 2021 19:21:49 +0000 (20:21 +0100)
test/lua/unit/quoted_printable.lua

index 29df0254ded282d34991f980bce8f2c9abbab264..5a03e0b3ec43e6984cef641ba3c4b697e4c116ff 100644 (file)
@@ -112,6 +112,16 @@ context("Quoted-Printable encoding", function()
       'foo\r\nbar',
       'Soft newline followed by hard newline (CRLF)',
     },
+    {
+      '=gB',
+      '=gB',
+      'Second character is okay, the first character is garbage'
+    },
+    {
+      '=bG',
+      '=bG',
+      'First character okay, the second character is rubbish'
+    }
   }
 
   for _,c in ipairs(cases) do