diff options
author | Jack Lloyd <[email protected]> | 2018-11-30 11:33:05 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-11-30 11:33:05 -0500 |
commit | 2d9a5c1ffa61c2a30cb66518ef2de496467540ed (patch) | |
tree | 72f9e34852fb72ea435f3a3860a8b2072069f777 /src/tests/data | |
parent | 542975a40e34b92f483468b37589fd448b002732 (diff) |
Fix a bug in OneAndZeros unpadding
Introduced in b13c0cc8590199d, it could only trigger if the block size
was more than 256 bytes. In that case an invalid padding could be accepted.
OSS-Fuzz 11608 (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11608)
Diffstat (limited to 'src/tests/data')
-rw-r--r-- | src/tests/data/pad.vec | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tests/data/pad.vec b/src/tests/data/pad.vec index 712d38709..acd668201 100644 --- a/src/tests/data/pad.vec +++ b/src/tests/data/pad.vec @@ -105,6 +105,12 @@ Blocksize = 8 In = 0000000000000000 Blocksize = 8 +In = 2020202020202020 +Blocksize = 8 + +In = 20202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020 +Blocksize = 256 + [X9.23] In = FFFFFF Out = FFFFFF0000000000000000000000000D |