summaryrefslogtreecommitdiff
path: root/ext/exif/tests/bug78793.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/exif/tests/bug78793.phpt')
-rw-r--r--ext/exif/tests/bug78793.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/exif/tests/bug78793.phpt b/ext/exif/tests/bug78793.phpt
new file mode 100644
index 0000000000..033f255ace
--- /dev/null
+++ b/ext/exif/tests/bug78793.phpt
@@ -0,0 +1,12 @@
+--TEST--
+Bug #78793: Use-after-free in exif parsing under memory sanitizer
+--FILE--
+<?php
+$f = "ext/exif/tests/bug77950.tiff";
+for ($i = 0; $i < 10; $i++) {
+ @exif_read_data($f);
+}
+?>
+===DONE===
+--EXPECT--
+===DONE===