diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2017-01-29 18:03:40 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2017-01-29 19:14:46 +0000 |
commit | 1ebe15c3a9807233cc92a92668b9090777daa9e1 (patch) | |
tree | 526816a71ea29ae0df378fd1efe1981a5ec4c088 /test/scripts | |
parent | cf68f1fbdbb5eefd87647fb8be0ee74568f8556d (diff) |
CHUNKING: Reject messages with malformed line ending. Bug 2000
Actually test only the first header line, but still do full line-ending canonicalisation on the
remainder of the message in case a Evil Person slips past that.
Diffstat (limited to 'test/scripts')
-rw-r--r-- | test/scripts/0000-Basic/0900 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/scripts/0000-Basic/0900 b/test/scripts/0000-Basic/0900 index 9e014c43e..4503ae0c0 100644 --- a/test/scripts/0000-Basic/0900 +++ b/test/scripts/0000-Basic/0900 @@ -215,5 +215,31 @@ quit ??? 221 **** # +# plain, small message (no body) +# header line with bad line-ending +client 127.0.0.1 PORT_D +??? 220 +ehlo tester +??? 250- +??? 250-SIZE +??? 250-8BITMIME +??? 250-PIPELINING +??? 250-CHUNKING +??? 250 HELP +mail from:someone@some.domain +??? 250 +rcpt to:CALLER@test.ex +??? 250 +bdat 87 last +>>> To: Susan@random.com\n +From: Sam@random.com +Subject: This is a Bodyless test message + +??? 552 +quit +??? 221 +**** +# +# killdaemon no_msglog_check |