forked from Exiv2/exiv2
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fde8ed0
commit 5444fce
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
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,21 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from system_tests import CaseMeta, path | ||
|
||
class PanasonicMakerPrintAccelerometerIntOverflow(metaclass=CaseMeta): | ||
""" | ||
Regression test for the bug described in: | ||
https://github.com/Exiv2/exiv2/issues/2006 | ||
""" | ||
url = "https://github.com/Exiv2/exiv2/issues/2006" | ||
|
||
filename = path("$data_path/issue_2006_poc.tiff") | ||
commands = ["$exiv2 -q -PE $filename"] | ||
stderr = [""] | ||
stdout = ["""Exif.Image.Make Ascii 32 Panasonic | ||
Exif.Image.DNGPrivateData 0x2020 32 80 97 110 97 115 111 110 105 99 32 32 32 0 32 32 255 32 32 32 32 32 255 255 255 32 255 255 198 52 32 32 0 | ||
Exif.MakerNote.Offset Long 1 48 | ||
Exif.MakerNote.ByteOrder Ascii 3 MM | ||
Exif.Panasonic.AccelerometerY SLong 4 2147483425 | ||
"""] | ||
retval = [0] |