diff options
author | Fabien Villepinte <fabien.villepinte@gmail.com> | 2019-10-08 13:50:03 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2019-10-08 14:11:32 +0200 |
commit | 46894580b06c1ba630a804ff0bbb9e61076720f4 (patch) | |
tree | 5ea02326908f572e1e4523934b293dc7cbca485c | |
parent | 195c2008e8f25040130e597f46cd652829c84dba (diff) | |
download | php-git-46894580b06c1ba630a804ff0bbb9e61076720f4.tar.gz |
Add missing SKIPIFs in exif tests
-rw-r--r-- | ext/exif/tests/duplicate_copyright_tag_leak.phpt | 6 | ||||
-rw-r--r-- | ext/exif/tests/tag_with_illegal_zero_components.phpt | 6 | ||||
-rw-r--r-- | ext/exif/tests/temporary_buffer_leak.phpt | 6 | ||||
-rw-r--r-- | ext/exif/tests/zero_length_makernote_leak.phpt | 6 |
4 files changed, 24 insertions, 0 deletions
diff --git a/ext/exif/tests/duplicate_copyright_tag_leak.phpt b/ext/exif/tests/duplicate_copyright_tag_leak.phpt index c5d5019794..3a4eccf142 100644 --- a/ext/exif/tests/duplicate_copyright_tag_leak.phpt +++ b/ext/exif/tests/duplicate_copyright_tag_leak.phpt @@ -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 diff --git a/ext/exif/tests/tag_with_illegal_zero_components.phpt b/ext/exif/tests/tag_with_illegal_zero_components.phpt index 26422db7ca..f3e434ed10 100644 --- a/ext/exif/tests/tag_with_illegal_zero_components.phpt +++ b/ext/exif/tests/tag_with_illegal_zero_components.phpt @@ -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 diff --git a/ext/exif/tests/temporary_buffer_leak.phpt b/ext/exif/tests/temporary_buffer_leak.phpt index cf136dd648..fe7fe1d8a7 100644 --- a/ext/exif/tests/temporary_buffer_leak.phpt +++ b/ext/exif/tests/temporary_buffer_leak.phpt @@ -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 diff --git a/ext/exif/tests/zero_length_makernote_leak.phpt b/ext/exif/tests/zero_length_makernote_leak.phpt index 37d0e0c573..246e267ddc 100644 --- a/ext/exif/tests/zero_length_makernote_leak.phpt +++ b/ext/exif/tests/zero_length_makernote_leak.phpt @@ -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 |