From: Vsevolod Stakhov Date: Mon, 20 Sep 2021 19:21:49 +0000 (+0100) Subject: [Test] Add tests for broken qp decoding X-Git-Tag: 3.1~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cae3206e6d9b23ff9f4abe9177c473eb13646598;p=thirdparty%2Frspamd.git [Test] Add tests for broken qp decoding --- diff --git a/test/lua/unit/quoted_printable.lua b/test/lua/unit/quoted_printable.lua index 29df0254de..5a03e0b3ec 100644 --- a/test/lua/unit/quoted_printable.lua +++ b/test/lua/unit/quoted_printable.lua @@ -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