|
|
@ -1,7 +1,7 @@
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
|
|
|
|
from system_tests import CaseMeta, CopyTmpFiles, path
|
|
|
|
from system_tests import CaseMeta, CopyTmpFiles, path
|
|
|
|
@CopyTmpFiles("$data_path/issue_1881_poc.jpg")
|
|
|
|
@CopyTmpFiles("$data_path/issue_1881_poc.jpg", "$data_path/issue_1881_coverage.jpg")
|
|
|
|
|
|
|
|
|
|
|
|
class SonyPreviewImageLargeAllocation(metaclass=CaseMeta):
|
|
|
|
class SonyPreviewImageLargeAllocation(metaclass=CaseMeta):
|
|
|
|
"""
|
|
|
|
"""
|
|
|
@ -10,11 +10,13 @@ class SonyPreviewImageLargeAllocation(metaclass=CaseMeta):
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
url = "https://github.com/Exiv2/exiv2/issues/1881"
|
|
|
|
url = "https://github.com/Exiv2/exiv2/issues/1881"
|
|
|
|
|
|
|
|
|
|
|
|
filename = path("$tmp_path/issue_1881_poc.jpg")
|
|
|
|
filename1 = path("$tmp_path/issue_1881_poc.jpg")
|
|
|
|
commands = ["$exiv2 -q -d I rm $filename"]
|
|
|
|
filename2 = path("$tmp_path/issue_1881_coverage.jpg")
|
|
|
|
stdout = [""]
|
|
|
|
commands = ["$exiv2 -q -d I rm $filename1", "$exiv2 -q -d I rm $filename2"]
|
|
|
|
|
|
|
|
stdout = ["",""]
|
|
|
|
stderr = [
|
|
|
|
stderr = [
|
|
|
|
"""Exiv2 exception in erase action for file $filename:
|
|
|
|
"""Exiv2 exception in erase action for file $filename1:
|
|
|
|
$kerCorruptedMetadata
|
|
|
|
$kerCorruptedMetadata
|
|
|
|
"""]
|
|
|
|
""",
|
|
|
|
retval = [1]
|
|
|
|
""]
|
|
|
|
|
|
|
|
retval = [1,0]
|
|
|
|