PHP  
 PHP_HEAD
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Valgrind Report for ext/odbc/tests/bug71171.phpt ('Bug #71171 odbc_fetch_array generates SIGFAULT, variant 0')

Script

1: <?php
2:
3:
include 'config.inc';
4:
5:
$conn odbc_connect($dsn$user$pass);
6:
7: @
odbc_exec($conn'CREATE DATABASE odbcTEST');
8:
9:
odbc_exec($conn'CREATE TABLE FOO (ID INT, VARCHAR_COL NVARCHAR(40))');
10:
11:
odbc_exec($conn"INSERT INTO FOO(ID, VARCHAR_COL) VALUES (1, '" chr(0x81) . "')");
12:
13:
$res odbc_exec($conn,"SELECT ID FROM FOO WHERE VARCHAR_COL = '" chr(0x81) . "'");
14: if (
$res) {
15:     while(
$record odbc_fetch_array($res)) var_dump($record);
16: }
17:
18:
odbc_close($conn);
19:
?>
20:
==DONE==
21:

Report

==9760== Conditional jump or move depends on uninitialised value(s)
==9760==    at 0xA9F257: odbc_bindcols (php_odbc.c:968)
==9760==    by 0xAA2723: zif_odbc_exec (php_odbc.c:1688)
==9760==    by 0x1199C8A: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==9760==    by 0x131518D: execute_ex (zend_vm_execute.h:59663)
==9760==    by 0x1315805: zend_execute (zend_vm_execute.h:63700)
==9760==    by 0x10BAC6B: zend_execute_scripts (zend.c:1494)
==9760==    by 0xFAC08D: php_execute_script (main.c:2593)
==9760==    by 0x131B3A1: do_cli (php_cli.c:1011)
==9760==    by 0x131CD55: main (php_cli.c:1404)
==9760== 
==9760== Conditional jump or move depends on uninitialised value(s)
==9760==    at 0xA9F4CC: odbc_bindcols (php_odbc.c:1020)
==9760==    by 0xAA2723: zif_odbc_exec (php_odbc.c:1688)
==9760==    by 0x1199C8A: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==9760==    by 0x131518D: execute_ex (zend_vm_execute.h:59663)
==9760==    by 0x1315805: zend_execute (zend_vm_execute.h:63700)
==9760==    by 0x10BAC6B: zend_execute_scripts (zend.c:1494)
==9760==    by 0xFAC08D: php_execute_script (main.c:2593)
==9760==    by 0x131B3A1: do_cli (php_cli.c:1011)
==9760==    by 0x131CD55: main (php_cli.c:1404)
==9760== 
==9760== Conditional jump or move depends on uninitialised value(s)
==9760==    at 0xA9F572: odbc_bindcols (php_odbc.c:1027)
==9760==    by 0xAA2723: zif_odbc_exec (php_odbc.c:1688)
==9760==    by 0x1199C8A: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==9760==    by 0x131518D: execute_ex (zend_vm_execute.h:59663)
==9760==    by 0x1315805: zend_execute (zend_vm_execute.h:63700)
==9760==    by 0x10BAC6B: zend_execute_scripts (zend.c:1494)
==9760==    by 0xFAC08D: php_execute_script (main.c:2593)
==9760==    by 0x131B3A1: do_cli (php_cli.c:1011)
==9760==    by 0x131CD55: main (php_cli.c:1404)
==9760== 
==9760== Conditional jump or move depends on uninitialised value(s)
==9760==    at 0xAA2BCC: php_odbc_fetch_hash (php_odbc.c:1770)
==9760==    by 0xAA3756: zif_odbc_fetch_array (php_odbc.c:1852)
==9760==    by 0x1199C8A: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==9760==    by 0x131518D: execute_ex (zend_vm_execute.h:59663)
==9760==    by 0x1315805: zend_execute (zend_vm_execute.h:63700)
==9760==    by 0x10BAC6B: zend_execute_scripts (zend.c:1494)
==9760==    by 0xFAC08D: php_execute_script (main.c:2593)
==9760==    by 0x131B3A1: do_cli (php_cli.c:1011)
==9760==    by 0x131CD55: main (php_cli.c:1404)
==9760== 
==9760== Conditional jump or move depends on uninitialised value(s)
==9760==    at 0xAA2BE7: php_odbc_fetch_hash (php_odbc.c:1770)
==9760==    by 0xAA3756: zif_odbc_fetch_array (php_odbc.c:1852)
==9760==    by 0x1199C8A: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:617)
==9760==    by 0x131518D: execute_ex (zend_vm_execute.h:59663)
==9760==    by 0x1315805: zend_execute (zend_vm_execute.h:63700)
==9760==    by 0x10BAC6B: zend_execute_scripts (zend.c:1494)
==9760==    by 0xFAC08D: php_execute_script (main.c:2593)
==9760==    by 0x131B3A1: do_cli (php_cli.c:1011)
==9760==    by 0x131CD55: main (php_cli.c:1404)
==9760== 

 

Generated at Sun, 24 Sep 2017 15:32:56 +0000 (39 hours ago)

Copyright © 2005-2017 The PHP Group
All rights reserved.