source: src/router/php7/ext/gd/tests/bug73868.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 4 months ago

update php

File size: 449 bytes
Line 
1--TEST--
2Bug 73868 (DOS vulnerability in gdImageCreateFromGd2Ctx())
3--SKIPIF--
4<?php
5if (!extension_loaded('gd')) die('skip gd extension not available');
6?>
7--FILE--
8<?php
9var_dump(imagecreatefromgd2(__DIR__ . DIRECTORY_SEPARATOR . 'bug73868.gd2'));
10?>
11===DONE===
12--EXPECTF--
13Warning: imagecreatefromgd2(): gd2: EOF while reading
14 in %s on line %d
15
16Warning: imagecreatefromgd2(): '%s' is not a valid GD2 file in %s on line %d
17bool(false)
18===DONE===
Note: See TracBrowser for help on using the repository browser.