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

==15525== Conditional jump or move depends on uninitialised value(s)
==15525==    at 0xADACB3: odbc_bindcols (php_odbc.c:968)
==15525==    by 0xADE29D: zif_odbc_exec (php_odbc.c:1699)
==15525==    by 0x11EFC24: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:626)
==15525==    by 0x134F0D0: execute_ex (zend_vm_execute.h:57400)
==15525==    by 0x134F723: zend_execute (zend_vm_execute.h:61323)
==15525==    by 0x1109E59: zend_execute_scripts (zend.c:1530)
==15525==    by 0xFF2AF5: php_execute_script (main.c:2467)
==15525==    by 0x1354F24: do_cli (php_cli.c:1011)
==15525==    by 0x1356915: main (php_cli.c:1404)
==15525== 
==15525== Conditional jump or move depends on uninitialised value(s)
==15525==    at 0xADAF28: odbc_bindcols (php_odbc.c:1020)
==15525==    by 0xADE29D: zif_odbc_exec (php_odbc.c:1699)
==15525==    by 0x11EFC24: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:626)
==15525==    by 0x134F0D0: execute_ex (zend_vm_execute.h:57400)
==15525==    by 0x134F723: zend_execute (zend_vm_execute.h:61323)
==15525==    by 0x1109E59: zend_execute_scripts (zend.c:1530)
==15525==    by 0xFF2AF5: php_execute_script (main.c:2467)
==15525==    by 0x1354F24: do_cli (php_cli.c:1011)
==15525==    by 0x1356915: main (php_cli.c:1404)
==15525== 
==15525== Conditional jump or move depends on uninitialised value(s)
==15525==    at 0xADAFCE: odbc_bindcols (php_odbc.c:1027)
==15525==    by 0xADE29D: zif_odbc_exec (php_odbc.c:1699)
==15525==    by 0x11EFC24: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:626)
==15525==    by 0x134F0D0: execute_ex (zend_vm_execute.h:57400)
==15525==    by 0x134F723: zend_execute (zend_vm_execute.h:61323)
==15525==    by 0x1109E59: zend_execute_scripts (zend.c:1530)
==15525==    by 0xFF2AF5: php_execute_script (main.c:2467)
==15525==    by 0x1354F24: do_cli (php_cli.c:1011)
==15525==    by 0x1356915: main (php_cli.c:1404)
==15525== 
==15525== Conditional jump or move depends on uninitialised value(s)
==15525==    at 0xADB074: odbc_bindcols (php_odbc.c:1034)
==15525==    by 0xADE29D: zif_odbc_exec (php_odbc.c:1699)
==15525==    by 0x11EFC24: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:626)
==15525==    by 0x134F0D0: execute_ex (zend_vm_execute.h:57400)
==15525==    by 0x134F723: zend_execute (zend_vm_execute.h:61323)
==15525==    by 0x1109E59: zend_execute_scripts (zend.c:1530)
==15525==    by 0xFF2AF5: php_execute_script (main.c:2467)
==15525==    by 0x1354F24: do_cli (php_cli.c:1011)
==15525==    by 0x1356915: main (php_cli.c:1404)
==15525== 
==15525== Conditional jump or move depends on uninitialised value(s)
==15525==    at 0xADE752: php_odbc_fetch_hash (php_odbc.c:1781)
==15525==    by 0xADF336: zif_odbc_fetch_array (php_odbc.c:1863)
==15525==    by 0x11EFC24: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:626)
==15525==    by 0x134F0D0: execute_ex (zend_vm_execute.h:57400)
==15525==    by 0x134F723: zend_execute (zend_vm_execute.h:61323)
==15525==    by 0x1109E59: zend_execute_scripts (zend.c:1530)
==15525==    by 0xFF2AF5: php_execute_script (main.c:2467)
==15525==    by 0x1354F24: do_cli (php_cli.c:1011)
==15525==    by 0x1356915: main (php_cli.c:1404)
==15525== 
==15525== Conditional jump or move depends on uninitialised value(s)
==15525==    at 0xADE76D: php_odbc_fetch_hash (php_odbc.c:1781)
==15525==    by 0xADF336: zif_odbc_fetch_array (php_odbc.c:1863)
==15525==    by 0x11EFC24: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:626)
==15525==    by 0x134F0D0: execute_ex (zend_vm_execute.h:57400)
==15525==    by 0x134F723: zend_execute (zend_vm_execute.h:61323)
==15525==    by 0x1109E59: zend_execute_scripts (zend.c:1530)
==15525==    by 0xFF2AF5: php_execute_script (main.c:2467)
==15525==    by 0x1354F24: do_cli (php_cli.c:1011)
==15525==    by 0x1356915: main (php_cli.c:1404)
==15525== 

 

Generated at Fri, 16 Feb 2018 06:57:12 +0000 (5 days ago)

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