Mantis - Quercus
Viewing Issue Advanced Details
3388 major always 03-13-09 12:08 03-18-09 15:35
koreth  
nam  
normal  
closed 4.0.0  
fixed  
none    
none 4.0.0  
0003388: Infinite loop + memory usage in unpack()
The following program doesn't terminate, and consumes all available memory:

<?php
unpack("C*xyz", "x");
 patch.txt [^] (2,433 bytes) 03-13-09 12:28

Notes
(0003877)
koreth   
03-13-09 12:28   
Patch attached. The code wasn't checking for EOF on its string buffer input stream.
(0003895)
nam   
03-18-09 15:35   
php/1d3n