Skip to content

Commit

Permalink
Merge pull request #94 from apasel422/embedded-eq
Browse files Browse the repository at this point in the history
Add must-fail tests for padding byte embedded in otherwise valid byte sequence
  • Loading branch information
mnot authored Jan 31, 2025
2 parents 68e5bfa + be8f069 commit d2ec605
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions binary.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@
{"__type": "binary", "value": ""},
[]]
},
{
"name": "padding at beginning",
"raw": [":=aGVsbG8=:"],
"header_type": "item",
"must_fail": true
},
{
"name": "padding in middle",
"raw": [":a=GVsbG8=:"],
"header_type": "item",
"must_fail": true
},
{
"name": "bad padding",
"raw": [":aGVsbG8:"],
Expand Down

0 comments on commit d2ec605

Please sign in to comment.