php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32143 ibase_query() causes IB server crash with invalid DB and parameters
Submitted: 2005-03-01 09:18 UTC Modified: 2007-11-08 19:47 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: sandell at winwap dot com Assigned: abies (profile)
Status: Closed Package: InterBase related
PHP Version: 5CVS-2005-03-01 OS: Windows XP SP2
Private report: No CVE-ID: None
 [2005-03-01 09:18 UTC] sandell at winwap dot com
Description:
------------
ibase_query() causes a Interbase Server crash if an invalid DB handle is used and parameters are passed in the function. There must be an existing DB connection opened with ibase_connect().

System info (All on same machine):
- Windows XP SP2
- Apache 2.0.50
- PHP 5.1.0-DEV (Downloaded 1.3.2005)
- Interbase Server WI-V7.1.0.192


Reproduce code:
---------------
// Crash Code
$db = ibase_connect($dbname,'SYSDBA','masterkey','None',0,3);
$sql = "SELECT * FROM aTable WHERE Status = ?";
$sth = ibase_query($db_hand, $sql, 0 ); // <- THIS LINE CRASHES IB SERVER (Note $db_hand variable)
ibase_close($db);


Expected result:
----------------
function should fail with an error reported to the log 

Actual result:
--------------
Interbase Server crashes

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-26 16:34 UTC] sniper@php.net
Assigned to the maintainer.
 [2007-11-08 19:47 UTC] lwe@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Fixed in HEAD and PHP_5_3
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC