-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Credit to OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detai…
…l?id=51751 Credit to OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=52053 Avoid null pointer deref and heap buffer overflow.
- Loading branch information
1 parent
a2cb06a
commit 459910c
Showing
6 changed files
with
49 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_2376_QuickTimeVideo_userDataDecoder_null_deref(metaclass=CaseMeta): | ||
url = "https://github.com/Exiv2/exiv2/issues/2376" | ||
filename = "$data_path/issue_2376_poc.mp4" | ||
commands = ["$exiv2 $filename"] | ||
retval = [1] | ||
stderr = ["""$exiv2_exception_message $filename: | ||
$kerCorruptedMetadata | ||
"""] | ||
stdout = [""] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from system_tests import CaseMeta, check_no_ASAN_UBSAN_errors | ||
|
||
class issue_2377_QuickTimeVideo_userDataDecoder_buffer_overflow(metaclass=CaseMeta): | ||
url = "https://github.com/Exiv2/exiv2/issues/2377" | ||
filename = "$data_path/issue_2377_poc.mp4" | ||
commands = ["$exiv2 $filename"] | ||
retval = [253] | ||
stderr = ["""$filename: No Exif data found in the file | ||
"""] | ||
stdout = ["""File name : $filename | ||
File size : 225 Bytes | ||
MIME type : video/quicktime | ||
Image size : 0 x 0 | ||
"""] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters