Skip to content
Snippets Groups Projects
Commit 3aa76cc5 authored by Julien (jvoisin) Voisin's avatar Julien (jvoisin) Voisin
Browse files

Prove that the previous commit is working

parent 8ff57c58
Branches
Tags
No related merge requests found
Binary_data_in_Exif_Comment.jpg

1.88 KiB

......@@ -174,3 +174,10 @@ class TestGetMeta(unittest.TestCase):
self.assertIn(b'genre: Python', stdout)
self.assertIn(b'i am a : various comment', stdout)
self.assertIn(b'artist: jvoisin', stdout)
class TestControlCharInjection(unittest.TestCase):
def test_jpg(self):
proc = subprocess.Popen(mat2_binary + ['--show', './tests/data/control_chars.jpg'],
stdout=subprocess.PIPE)
stdout, _ = proc.communicate()
self.assertIn(b'Comment: GQ\n', stdout)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment