Skip to content

Commit

Permalink
Regression test for Exiv2#2352
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbackhouse committed Sep 19, 2022
1 parent 250586e commit 8016f67
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
Binary file added test/data/issue_2352_poc.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions tests/bugfixes/github/test_issue_2352.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-

from system_tests import CaseMeta, check_no_ASAN_UBSAN_errors

class issue_2352_floatToRationalCast_integer_overflow(metaclass=CaseMeta):
url = "https://github.com/Exiv2/exiv2/issues/2352"
filename = "$data_path/issue_2352_poc.jpg"
commands = ["$exiv2 -q $filename"]
retval = [0]
stderr = [""]
stdout = ["""File name : $filename
File size : 20 Bytes
MIME type : image/tiff
Image size : 0 x 0
Thumbnail : None
Camera make :
Camera model :
Image timestamp :
File number :
Exposure time :
Aperture :
Exposure bias :
Flash :
Flash bias :
Focal length :
Subject distance: -214748.50 m
ISO speed :
Exposure mode :
Metering mode :
Macro mode :
Image quality :
White balance :
Copyright :
Exif comment :
"""]

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 @@ -97,6 +97,7 @@ def get_valid_files(data_dir):
"issue_2270_poc.webp",
"issue_2320_poc.jpg",
"issue_2339_poc.tiff",
"issue_2352_poc.jpg",
"issue_ghsa_583f_w9pm_99r2_poc.jp2",
"issue_ghsa_7569_phvm_vwc2_poc.jp2",
"issue_ghsa_mxw9_qx4c_6m8v_poc.jp2",
Expand Down

0 comments on commit 8016f67

Please sign in to comment.