Skip to content

Commit

Permalink
Test for Exiv2#1821
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbackhouse committed Aug 5, 2021
1 parent 4f15518 commit d54e3e5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
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 @@
㰿硰慣步琿㸊㱸硭⁸浬湳㩰潴濋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯏솸쇁쇀쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁셉䐽∳∯�
<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]

0 comments on commit d54e3e5

Please sign in to comment.