commit cae3206: [Test] Add tests for broken qp decoding
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Sep 20 19:28:04 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-09-20 20:21:49 +0100
URL: https://github.com/rspamd/rspamd/commit/cae3206e6d9b23ff9f4abe9177c473eb13646598
[Test] Add tests for broken qp decoding
---
test/lua/unit/quoted_printable.lua | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/test/lua/unit/quoted_printable.lua b/test/lua/unit/quoted_printable.lua
index 29df0254d..5a03e0b3e 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
More information about the Commits
mailing list