Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for issue 1821 #1850

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions test/data/issue_1821_poc.xmp
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xpacket?>
<xxm xmlns:poto��������������������������������������������������������������������������������������������������������������������������������ID="3"/>
27 changes: 27 additions & 0 deletions tests/bugfixes/github/test_issue_1821.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-

from system_tests import CaseMeta, path
import unittest

# Issue #1821 is a memory leak caused by buggy third-party
# code in the xmpsdk sub-directory, so it isn't easy for us to fix.
# This test will fail when run with an ASAN build.
@unittest.skip("Skipping test until #1821 is fixed")

class MemoryLeakAddBinding(metaclass=CaseMeta):
"""
Regression test for the bug described in:
https://github.com/Exiv2/exiv2/issues/1821
"""
url = "https://github.com/Exiv2/exiv2/issues/1821"

filename = path("$data_path/issue_1821_poc.xmp")
commands = ["$exiv2 -q $filename"]
stdout = ["""File name : $filename
File size : 163 Bytes
MIME type : application/rdf+xml
Image size : 0 x 0
"""]
stderr = ["""$filename: No Exif data found in the file
"""]
retval = [253]