Skip to content

Commit 5444fce

Browse files
Regression test for #2006
1 parent fde8ed0 commit 5444fce

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

test/data/issue_2006_poc.tiff

144 Bytes
Binary file not shown.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# -*- coding: utf-8 -*-
2+
3+
from system_tests import CaseMeta, path
4+
5+
class PanasonicMakerPrintAccelerometerIntOverflow(metaclass=CaseMeta):
6+
"""
7+
Regression test for the bug described in:
8+
https://github.com/Exiv2/exiv2/issues/2006
9+
"""
10+
url = "https://github.com/Exiv2/exiv2/issues/2006"
11+
12+
filename = path("$data_path/issue_2006_poc.tiff")
13+
commands = ["$exiv2 -q -PE $filename"]
14+
stderr = [""]
15+
stdout = ["""Exif.Image.Make Ascii 32 Panasonic
16+
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
17+
Exif.MakerNote.Offset Long 1 48
18+
Exif.MakerNote.ByteOrder Ascii 3 MM
19+
Exif.Panasonic.AccelerometerY SLong 4 2147483425
20+
"""]
21+
retval = [0]

0 commit comments

Comments
 (0)