diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2022-11-29 10:40:54 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2022-11-29 11:11:38 +0100 |
| commit | 05dc7993e52e7258c455bd8e2a87f0a9f1592d36 (patch) | |
| tree | 4aa59f157923f75c146e0a68d8c1d985b86919c9 /pkg/email/parser_test.go | |
| parent | ca9683b89903c4b91d1ccce66646d0673bd160a6 (diff) | |
pkg/email: tolerate newline characters after #syz
It look like email clients can insert newlines there if the line is too long.
Diffstat (limited to 'pkg/email/parser_test.go')
| -rw-r--r-- | pkg/email/parser_test.go | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkg/email/parser_test.go b/pkg/email/parser_test.go index 22fbdbbea..edeb4a8de 100644 --- a/pkg/email/parser_test.go +++ b/pkg/email/parser_test.go @@ -762,4 +762,31 @@ nothing to see here`, Body: `nothing to see here`, Command: CmdNone, }}, + {`Sender: syzkaller-bugs@googlegroups.com +Subject: Re: BUG: unable to handle kernel NULL pointer dereference in + sock_poll +To: syzbot <syzbot+344bb0f46d7719cd9483@syzkaller.appspotmail.com> +From: bar <bar@foo.com> +Message-ID: <1250334f-7220-2bff-5d87-b87573758d81@bar.com> +Date: Sun, 10 Jun 2018 10:38:20 +0900 +MIME-Version: 1.0 +Content-Type: text/plain; charset="UTF-8" +Content-Language: en-US +Content-Transfer-Encoding: quoted-printable + +#syz=20 +test: https://github.com/torvalds/linux.git 7b5bb460defa107dd2e82= +f950fddb9ea6bdb5e39 +`, Email{ + MessageID: "<1250334f-7220-2bff-5d87-b87573758d81@bar.com>", + Subject: "Re: BUG: unable to handle kernel NULL pointer dereference in sock_poll", + Author: "bar@foo.com", + Cc: []string{"bar@foo.com", "syzbot@syzkaller.appspotmail.com"}, + Body: `#syz +test: https://github.com/torvalds/linux.git 7b5bb460defa107dd2e82f950fddb9ea6bdb5e39 +`, + Command: CmdTest, + CommandStr: "test:", + CommandArgs: "https://github.com/torvalds/linux.git 7b5bb460defa107dd2e82f950fddb9ea6bdb5e39", + }}, } |
