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

==17566== Conditional jump or move depends on uninitialised value(s)
==17566==    at 0xAEB2A2: odbc_bindcols (php_odbc.c:968)
==17566==    by 0xAEE8E0: zif_odbc_exec (php_odbc.c:1696)
==17566==    by 0x135B54E: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:688)
==17566==    by 0x135B54E: execute_ex (zend_vm_execute.h:54817)
==17566==    by 0x1383017: zend_execute (zend_vm_execute.h:60001)
==17566==    by 0x113B371: zend_execute_scripts (zend.c:1566)
==17566==    by 0x102A06F: php_execute_script (main.c:2467)
==17566==    by 0x1388BF6: do_cli (php_cli.c:1011)
==17566==    by 0x138A6B4: main (php_cli.c:1404)
==17566== 
==17566== Use of uninitialised value of size 8
==17566==    at 0xAEB2B3: odbc_bindcols (php_odbc.c:968)
==17566==    by 0xAEE8E0: zif_odbc_exec (php_odbc.c:1696)
==17566==    by 0x135B54E: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:688)
==17566==    by 0x135B54E: execute_ex (zend_vm_execute.h:54817)
==17566==    by 0x1383017: zend_execute (zend_vm_execute.h:60001)
==17566==    by 0x113B371: zend_execute_scripts (zend.c:1566)
==17566==    by 0x102A06F: php_execute_script (main.c:2467)
==17566==    by 0x1388BF6: do_cli (php_cli.c:1011)
==17566==    by 0x138A6B4: main (php_cli.c:1404)
==17566== 
==17566== Conditional jump or move depends on uninitialised value(s)
==17566==    at 0xAEB511: odbc_bindcols (php_odbc.c:1020)
==17566==    by 0xAEE8E0: zif_odbc_exec (php_odbc.c:1696)
==17566==    by 0x135B54E: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:688)
==17566==    by 0x135B54E: execute_ex (zend_vm_execute.h:54817)
==17566==    by 0x1383017: zend_execute (zend_vm_execute.h:60001)
==17566==    by 0x113B371: zend_execute_scripts (zend.c:1566)
==17566==    by 0x102A06F: php_execute_script (main.c:2467)
==17566==    by 0x1388BF6: do_cli (php_cli.c:1011)
==17566==    by 0x138A6B4: main (php_cli.c:1404)
==17566== 
==17566== Conditional jump or move depends on uninitialised value(s)
==17566==    at 0xAEB5B4: odbc_bindcols (php_odbc.c:1027)
==17566==    by 0xAEE8E0: zif_odbc_exec (php_odbc.c:1696)
==17566==    by 0x135B54E: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:688)
==17566==    by 0x135B54E: execute_ex (zend_vm_execute.h:54817)
==17566==    by 0x1383017: zend_execute (zend_vm_execute.h:60001)
==17566==    by 0x113B371: zend_execute_scripts (zend.c:1566)
==17566==    by 0x102A06F: php_execute_script (main.c:2467)
==17566==    by 0x1388BF6: do_cli (php_cli.c:1011)
==17566==    by 0x138A6B4: main (php_cli.c:1404)
==17566== 
==17566== Conditional jump or move depends on uninitialised value(s)
==17566==    at 0xAEB657: odbc_bindcols (php_odbc.c:1034)
==17566==    by 0xAEE8E0: zif_odbc_exec (php_odbc.c:1696)
==17566==    by 0x135B54E: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:688)
==17566==    by 0x135B54E: execute_ex (zend_vm_execute.h:54817)
==17566==    by 0x1383017: zend_execute (zend_vm_execute.h:60001)
==17566==    by 0x113B371: zend_execute_scripts (zend.c:1566)
==17566==    by 0x102A06F: php_execute_script (main.c:2467)
==17566==    by 0x1388BF6: do_cli (php_cli.c:1011)
==17566==    by 0x138A6B4: main (php_cli.c:1404)
==17566== 
==17566== Conditional jump or move depends on uninitialised value(s)
==17566==    at 0xAEED60: php_odbc_fetch_hash (php_odbc.c:1778)
==17566==    by 0xAEF90D: zif_odbc_fetch_array (php_odbc.c:1860)
==17566==    by 0x135B54E: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:688)
==17566==    by 0x135B54E: execute_ex (zend_vm_execute.h:54817)
==17566==    by 0x1383017: zend_execute (zend_vm_execute.h:60001)
==17566==    by 0x113B371: zend_execute_scripts (zend.c:1566)
==17566==    by 0x102A06F: php_execute_script (main.c:2467)
==17566==    by 0x1388BF6: do_cli (php_cli.c:1011)
==17566==    by 0x138A6B4: main (php_cli.c:1404)
==17566== 
==17566== Conditional jump or move depends on uninitialised value(s)
==17566==    at 0xAEED7B: php_odbc_fetch_hash (php_odbc.c:1778)
==17566==    by 0xAEF90D: zif_odbc_fetch_array (php_odbc.c:1860)
==17566==    by 0x135B54E: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:688)
==17566==    by 0x135B54E: execute_ex (zend_vm_execute.h:54817)
==17566==    by 0x1383017: zend_execute (zend_vm_execute.h:60001)
==17566==    by 0x113B371: zend_execute_scripts (zend.c:1566)
==17566==    by 0x102A06F: php_execute_script (main.c:2467)
==17566==    by 0x1388BF6: do_cli (php_cli.c:1011)
==17566==    by 0x138A6B4: main (php_cli.c:1404)
==17566== 

 

Generated at Wed, 23 May 2018 02:31:34 +0000 (3 days ago)

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