Bug #72571 [Ver->Csd]: SQLite3::bindValue, SQLite3::bindParam crash
| From: | laruence@php.net | Date: | Mon, 11 Jul 2016 03:52:02 +0000 |
| Subject: | Bug #72571 [Ver->Csd]: SQLite3::bindValue, SQLite3::bindParam crash | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-202185@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72571&edit=1
ID: 72571
Updated by: laruence@php.net
Reported by: dedlegprod at gmail dot com
Summary: SQLite3::bindValue, SQLite3::bindParam crash
-Status: Verified
+Status: Closed
Type: Bug
Package: SQLite related
Operating System: Linux (Arch)
PHP Version: 7.0.8
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=a19655cfe39e4207da211610e3fc6550a6af07a0
Log: Fixed bug #72571 (SQLite3::bindValue, SQLite3::bindParam crash)
Previous Comments:
------------------------------------------------------------------------
[2016-07-11 01:20:59] cmb@php.net
Confirmed: <https://3v4l.org/hXF48>.
------------------------------------------------------------------------
[2016-07-10 20:34:51] dedlegprod at gmail dot com
Description:
------------
Hello!
I'm using archlinux, php 7.0.8 and sqlite3 module version => 0.7-dev, library => 3.13.0.
I'm getting crash in SQLite3::bindValue and SQLite3::bindParam. The crash seems to occur when
invalid index is passed.
Test script:
---------------
<?php
$db = new SQLite3("./test.db");
$stmt = $db->prepare("select 1, 2, 3 from sqlite_master where 1 = ?");
// bindParam crash
$i = 0;
$stmt->bindParam(0, $i);
// bindValue crash
$stmt->bindParam(0, 1);
// not reached
$stmt->execute();
$db->close();
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72571&edit=1