Skip to content

Commit

Permalink
[testsuite] Add reproducer for Exiv2#378 to the testsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
D4N committed Jul 9, 2018
1 parent 33c0416 commit f8fc2e6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Binary file added test/data/issue_378_1-poc-heapoverflow
Binary file not shown.
19 changes: 19 additions & 0 deletions tests/bugfixes/github/test_issue_378.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-

import system_tests


class WebpDecodeChunksOutOfBoundsRead(metaclass=system_tests.CaseMeta):

url = "https://github.com/Exiv2/exiv2/issues/378"

filename = "$data_path/issue_378_1-poc-heapoverflow"

commands = ["$exiv2 -pp $filename"]
stdout = [""]
stderr = [
"""$exiv2_exception_message $filename:
$kerCorruptedMetadata
"""
]
retval = [1]

0 comments on commit f8fc2e6

Please sign in to comment.