source: src/router/php7/ext/gd/tests/bug71912-mb.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 6 weeks ago

update php

File size: 553 bytes
Line 
1--TEST--
2Bug #71912 (libgd: signedness vulnerability)
3--SKIPIF--
4<?php
5        if(!extension_loaded('gd')){ die('skip gd extension not available'); }
6        if(!function_exists('imagecreatefromgd2')) die('skip imagecreatefromgd2() not available');
7?>
8--FILE--
9<?php
10imagecreatefromgd2(__DIR__ . DIRECTORY_SEPARATOR . "invalid_neg_size私はガラスを食べられたす.gd2");
11?>
12OK
13--EXPECTF--
14
15Warning: imagecreatefromgd2(): '%s%einvalid_neg_size私はガラスを食べられたす.gd2' is not a valid GD2 file in %s%ebug71912-mb.php on line %d
16OK
Note: See TracBrowser for help on using the repository browser.