Merge pull request #1921 from kevinbackhouse/FixIssue1920

Fix UBSAN failure caused by left-shift of negative number
This commit is contained in:
Kevin Backhouse
2021-10-04 10:59:27 +01:00
committed by GitHub
4 changed files with 42 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
from system_tests import CaseMeta, path, check_no_ASAN_UBSAN_errors
class PentaxMakerNotePrintTimeSignedLeftShift(metaclass=CaseMeta):
"""
Regression test for the bug described in:
https://github.com/Exiv2/exiv2/issues/1920
"""
url = "https://github.com/Exiv2/exiv2/issues/1920"
filename = path("$data_path/issue_1920_poc.tiff")
commands = ["$exiv2 -q -Pt $filename"]
stderr = [""]
retval = [0]
compare_stdout = check_no_ASAN_UBSAN_errors