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

==30188== Conditional jump or move depends on uninitialised value(s)
==30188==    at 0xAEA54C: odbc_bindcols (php_odbc.c:968)
==30188==    by 0xAEDB85: zif_odbc_exec (php_odbc.c:1696)
==30188==    by 0x136A0AB: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:690)
==30188==    by 0x136A0AB: execute_ex (zend_vm_execute.h:54926)
==30188==    by 0x1391814: zend_execute (zend_vm_execute.h:60358)
==30188==    by 0x1148D89: zend_execute_scripts (zend.c:1564)
==30188==    by 0x10374AC: php_execute_script (main.c:2608)
==30188==    by 0x1397550: do_cli (php_cli.c:1002)
==30188==    by 0x139900E: main (php_cli.c:1395)
==30188== 
==30188== Use of uninitialised value of size 8
==30188==    at 0xAEA55D: odbc_bindcols (php_odbc.c:968)
==30188==    by 0xAEDB85: zif_odbc_exec (php_odbc.c:1696)
==30188==    by 0x136A0AB: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:690)
==30188==    by 0x136A0AB: execute_ex (zend_vm_execute.h:54926)
==30188==    by 0x1391814: zend_execute (zend_vm_execute.h:60358)
==30188==    by 0x1148D89: zend_execute_scripts (zend.c:1564)
==30188==    by 0x10374AC: php_execute_script (main.c:2608)
==30188==    by 0x1397550: do_cli (php_cli.c:1002)
==30188==    by 0x139900E: main (php_cli.c:1395)
==30188== 
==30188== Conditional jump or move depends on uninitialised value(s)
==30188==    at 0xAEA7BB: odbc_bindcols (php_odbc.c:1020)
==30188==    by 0xAEDB85: zif_odbc_exec (php_odbc.c:1696)
==30188==    by 0x136A0AB: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:690)
==30188==    by 0x136A0AB: execute_ex (zend_vm_execute.h:54926)
==30188==    by 0x1391814: zend_execute (zend_vm_execute.h:60358)
==30188==    by 0x1148D89: zend_execute_scripts (zend.c:1564)
==30188==    by 0x10374AC: php_execute_script (main.c:2608)
==30188==    by 0x1397550: do_cli (php_cli.c:1002)
==30188==    by 0x139900E: main (php_cli.c:1395)
==30188== 
==30188== Conditional jump or move depends on uninitialised value(s)
==30188==    at 0xAEA85E: odbc_bindcols (php_odbc.c:1027)
==30188==    by 0xAEDB85: zif_odbc_exec (php_odbc.c:1696)
==30188==    by 0x136A0AB: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:690)
==30188==    by 0x136A0AB: execute_ex (zend_vm_execute.h:54926)
==30188==    by 0x1391814: zend_execute (zend_vm_execute.h:60358)
==30188==    by 0x1148D89: zend_execute_scripts (zend.c:1564)
==30188==    by 0x10374AC: php_execute_script (main.c:2608)
==30188==    by 0x1397550: do_cli (php_cli.c:1002)
==30188==    by 0x139900E: main (php_cli.c:1395)
==30188== 
==30188== Conditional jump or move depends on uninitialised value(s)
==30188==    at 0xAEA901: odbc_bindcols (php_odbc.c:1034)
==30188==    by 0xAEDB85: zif_odbc_exec (php_odbc.c:1696)
==30188==    by 0x136A0AB: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:690)
==30188==    by 0x136A0AB: execute_ex (zend_vm_execute.h:54926)
==30188==    by 0x1391814: zend_execute (zend_vm_execute.h:60358)
==30188==    by 0x1148D89: zend_execute_scripts (zend.c:1564)
==30188==    by 0x10374AC: php_execute_script (main.c:2608)
==30188==    by 0x1397550: do_cli (php_cli.c:1002)
==30188==    by 0x139900E: main (php_cli.c:1395)
==30188== 
==30188== Conditional jump or move depends on uninitialised value(s)
==30188==    at 0xAEE000: php_odbc_fetch_hash (php_odbc.c:1778)
==30188==    by 0xAEEBAD: zif_odbc_fetch_array (php_odbc.c:1860)
==30188==    by 0x136A0AB: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:690)
==30188==    by 0x136A0AB: execute_ex (zend_vm_execute.h:54926)
==30188==    by 0x1391814: zend_execute (zend_vm_execute.h:60358)
==30188==    by 0x1148D89: zend_execute_scripts (zend.c:1564)
==30188==    by 0x10374AC: php_execute_script (main.c:2608)
==30188==    by 0x1397550: do_cli (php_cli.c:1002)
==30188==    by 0x139900E: main (php_cli.c:1395)
==30188== 
==30188== Conditional jump or move depends on uninitialised value(s)
==30188==    at 0xAEE01B: php_odbc_fetch_hash (php_odbc.c:1778)
==30188==    by 0xAEEBAD: zif_odbc_fetch_array (php_odbc.c:1860)
==30188==    by 0x136A0AB: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:690)
==30188==    by 0x136A0AB: execute_ex (zend_vm_execute.h:54926)
==30188==    by 0x1391814: zend_execute (zend_vm_execute.h:60358)
==30188==    by 0x1148D89: zend_execute_scripts (zend.c:1564)
==30188==    by 0x10374AC: php_execute_script (main.c:2608)
==30188==    by 0x1397550: do_cli (php_cli.c:1002)
==30188==    by 0x139900E: main (php_cli.c:1395)
==30188== 

 

Generated at Thu, 19 Jul 2018 09:51:32 +0000 (7 hours ago)

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