Bug#361605: php4-sqlite: sqlite_escape_string tries to consume infinite memory (and dies) on amd64

2006-05-29 Thread Matt Brown
Matej Vela wrote: Judging by the changes in PHP5, the problem is caused by the call to zend_parse_parameters(), which should be provided with an int rather than a long for the string length. Please test the following patch. snip Also, please test whether it accepts empty strings --

Bug#361605: php4-sqlite: sqlite_escape_string tries to consume infinite memory (and dies) on amd64

2006-05-28 Thread Matej Vela
tag 361605 patch moreinfo thanks Matt Brown [EMAIL PROTECTED] writes: On amd64 the sqlite_escape_string function is faulty and causes PHP to kill the script due to PHP's internal memory limit being reached. [...] php5-sqlite (linked against the same libsqlite0) is not affected and neither is

Bug#361605: php4-sqlite: sqlite_escape_string tries to consume infinite memory (and dies) on amd64

2006-04-09 Thread Matt Brown
Package: php4-sqlite Version: 1.0.2-9 Severity: important On amd64 the sqlite_escape_string function is faulty and causes PHP to kill the script due to PHP's internal memory limit being reached. An example script that reproduces this problem is: ?php echo sqlite_escape_string(a); ? Running

Bug#361605: php4-sqlite: sqlite_escape_string tries to consume infinite memory (and dies) on amd64

2006-04-09 Thread Matthew Palmer
package php4-sqlite severity 361605 serious tag 361605 +amd64 thanks On Sun, Apr 09, 2006 at 10:27:03PM +1200, Matt Brown wrote: On amd64 the sqlite_escape_string function is faulty and causes PHP to kill the script due to PHP's internal memory limit being reached. That's quite nasty. Is this

Bug#361605: php4-sqlite: sqlite_escape_string tries to consume infinite memory (and dies) on amd64

2006-04-09 Thread Matt Brown
Matthew Palmer wrote: That's quite nasty. Is this the officially-built php4-sqlite you're working from here? (I'd guess so, but better to be safe than sorry). Yes. Cheers -- Matt Brown [EMAIL PROTECTED] Mob +64 21 611 544 www.mattb.net.nz signature.asc Description: OpenPGP digital