summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Binary_data_in_Exif_Comment.jpgbin0 -> 1929 bytes
-rw-r--r--tests/test_climat2.py7
2 files changed, 7 insertions, 0 deletions
diff --git a/Binary_data_in_Exif_Comment.jpg b/Binary_data_in_Exif_Comment.jpg
new file mode 100644
index 0000000..4716a46
--- /dev/null
+++ b/Binary_data_in_Exif_Comment.jpg
Binary files differ
diff --git a/tests/test_climat2.py b/tests/test_climat2.py
index 53e4f5b..e17da86 100644
--- a/tests/test_climat2.py
+++ b/tests/test_climat2.py
@@ -174,3 +174,10 @@ class TestGetMeta(unittest.TestCase):
174 self.assertIn(b'genre: Python', stdout) 174 self.assertIn(b'genre: Python', stdout)
175 self.assertIn(b'i am a : various comment', stdout) 175 self.assertIn(b'i am a : various comment', stdout)
176 self.assertIn(b'artist: jvoisin', stdout) 176 self.assertIn(b'artist: jvoisin', stdout)
177
178class TestControlCharInjection(unittest.TestCase):
179 def test_jpg(self):
180 proc = subprocess.Popen(mat2_binary + ['--show', './tests/data/control_chars.jpg'],
181 stdout=subprocess.PIPE)
182 stdout, _ = proc.communicate()
183 self.assertIn(b'Comment: GQ\n', stdout)