diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-09-20 20:21:49 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-09-20 20:21:49 +0100 |
commit | cae3206e6d9b23ff9f4abe9177c473eb13646598 (patch) | |
tree | 77667f87ff69217e56656fcfac1a698300a14c0f /test | |
parent | 79f1c605196fd2451fb9d656296900160af426e6 (diff) | |
download | rspamd-cae3206e6d9b23ff9f4abe9177c473eb13646598.tar.gz rspamd-cae3206e6d9b23ff9f4abe9177c473eb13646598.zip |
[Test] Add tests for broken qp decoding
Diffstat (limited to 'test')
-rw-r--r-- | test/lua/unit/quoted_printable.lua | 10 |
1 files changed, 10 insertions, 0 deletions
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 |