Skip to content

Commit

Permalink
Regression test for Exiv2#2383
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbackhouse committed Oct 22, 2022
1 parent b90426d commit baf1969
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Binary file added test/data/issue_2383_poc.mp4
Binary file not shown.
13 changes: 13 additions & 0 deletions tests/bugfixes/github/test_issue_2383.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# -*- coding: utf-8 -*-

from system_tests import CaseMeta, check_no_ASAN_UBSAN_errors

class issue_2383_QuickTimeVideo_userDataDecoder_null_deref(metaclass=CaseMeta):
url = "https://github.com/Exiv2/exiv2/issues/2383"
filename = "$data_path/issue_2383_poc.mp4"
commands = ["$exiv2 $filename"]
retval = [1]
stderr = ["""$exiv2_exception_message $filename:
$kerCorruptedMetadata
"""]
stdout = [""]
1 change: 1 addition & 0 deletions tests/regression_tests/test_regression_allfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def get_valid_files(data_dir):
"issue_2366_poc.mp4",
"issue_2376_poc.mp4",
"issue_2377_poc.mp4",
"issue_2383_poc.mp4",
"2018-01-09-exiv2-crash-001.tiff",
"cve_2017_1000126_stack-oob-read.webp",
"exiv2-bug1247.jpg",
Expand Down

0 comments on commit baf1969

Please sign in to comment.