Taken from testcase in php bug report and run on amd64 sid.

/tmp/test.php:

<?php

$string = '';

// These two in any order
$string .= "\r\n";
$string .= "''''";

// Total string length > 8192
$string .= str_repeat(chr(rand(32, 127)), 8184);

// Ending in this string
$string .= "say";

$finfo = new finfo();
$type = $finfo->buffer($string);
var_dump($type);

?>

Run as 'php5 /tmp/test.php' (using php5-cli) and you get:

Segmentation fault

Change 8184 to 4184 and you get:

string(60) "ASCII text, with very long lines, with CRLF line terminators"

So clearly this bug exists.

-- 
Len Sorensen


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to