forked from Exiv2/exiv2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Canon lens detection (Exiv2#2057)
Previously, when translating `Exif.CanonCs.LensType`, `Exif.CanonCs.MaxAperture` was used as the upper bound to find a potential match. In Exiv2#2057, the test file produced a value outside of that range and the lens was not identified. The fix uses `Exif.CanonCs.MinAperture` instead.
- Loading branch information
1 parent
0561392
commit d8d5a3a
Showing
6 changed files
with
529 additions
and
18 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.
Large diffs are not rendered by default.
Oops, something went wrong.
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, path | ||
|
||
class PanasonicMakerPrintAccelerometerIntOverflow(metaclass=CaseMeta): | ||
""" | ||
Regression test for the bug described in: | ||
https://github.com/Exiv2/exiv2/issues/2057 | ||
""" | ||
url = "https://github.com/Exiv2/exiv2/issues/2057" | ||
|
||
filename = path("$data_path/issue_2057_poc1.exv") | ||
commands = ["$exiv2 --Print kyyvt --key Exif.CanonCs.LensType $filename"] | ||
stderr = [""] | ||
stdout = ["""Exif.CanonCs.LensType Short 61182 Canon RF 24-105mm F4L IS USM *OR* Canon RF 24-105mm F4-7.1 IS STM | ||
"""] | ||
retval = [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
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