]> granicus.if.org Git - php/commitdiff
Add missing SKIPIFs in exif tests
authorFabien Villepinte <fabien.villepinte@gmail.com>
Tue, 8 Oct 2019 11:50:03 +0000 (13:50 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Tue, 8 Oct 2019 12:11:32 +0000 (14:11 +0200)
ext/exif/tests/duplicate_copyright_tag_leak.phpt
ext/exif/tests/tag_with_illegal_zero_components.phpt
ext/exif/tests/temporary_buffer_leak.phpt
ext/exif/tests/zero_length_makernote_leak.phpt

index c5d501979419de7c0aab460b0393e94360be4a3d..3a4eccf1422849de6a5351b0fddd900fa27b68e2 100644 (file)
@@ -1,5 +1,11 @@
 --TEST--
 OSS-Fuzz #17474: Memory leak on duplicate Copyright tags
+--SKIPIF--
+<?php
+if (!extension_loaded('exif')) {
+    die('skip exif extension not available');
+}
+?>
 --FILE--
 <?php
 
index 26422db7cac64544ed36fcfd40c586a409965f7c..f3e434ed10237db0e5c90a6d76082d82d4c2c75b 100644 (file)
@@ -1,5 +1,11 @@
 --TEST--
 OSS-Fuzz #17163: Out-of-bounds read due to tag with zero components
+--SKIPIF--
+<?php
+if (!extension_loaded('exif')) {
+    die('skip exif extension not available');
+}
+?>
 --FILE--
 <?php
 
index cf136dd6486b8d385ed7b17354bd14bc21ab5986..fe7fe1d8a7212f01a5c7ced411fd08de7a203267 100644 (file)
@@ -1,5 +1,11 @@
 --TEST--
 OSS-Fuzz: Temporary buffer leak in tag reading
+--SKIPIF--
+<?php
+if (!extension_loaded('exif')) {
+    die('skip exif extension not available');
+}
+?>
 --FILE--
 <?php
 
index 37d0e0c57319b16c98d1783e858b7f01359b27db..246e267ddcc10137080c785214d8fba714c26604 100644 (file)
@@ -1,5 +1,11 @@
 --TEST--
 OSS-Fuzz: Memory leak for zero-length MAKERNOTE
+--SKIPIF--
+<?php
+if (!extension_loaded('exif')) {
+    die('skip exif extension not available');
+}
+?>
 --FILE--
 <?php