-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1826 from Exiv2/mergify/bp/main/pr-1820
Check that the string isn't empty (backport #1820)
- Loading branch information
Showing
4 changed files
with
59 additions
and
16 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.
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,41 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from system_tests import CaseMeta, CopyTmpFiles, path, check_no_ASAN_UBSAN_errors | ||
|
||
class EmptyStringXmpTextValueRead(metaclass=CaseMeta): | ||
""" | ||
Regression test for the bug described in: | ||
https://github.com/Exiv2/exiv2/issues/1819 | ||
""" | ||
url = "https://github.com/Exiv2/exiv2/issues/1819" | ||
|
||
filename = path("$data_path/issue_1819_poc.exv") | ||
commands = ["$exiv2 -q $filename"] | ||
stdout = ["""File name : $filename | ||
File size : 1088 Bytes | ||
MIME type : application/rdf+xml | ||
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: | ||
ISO speed : | ||
Exposure mode : | ||
Metering mode : | ||
Macro mode : | ||
Image quality : | ||
White balance : | ||
Copyright : | ||
Exif comment : | ||
"""] | ||
stderr = [""] | ||
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