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

==6914== Conditional jump or move depends on uninitialised value(s)
==6914==    at 0xAA2033: odbc_bindcols (php_odbc.c:968)
==6914==    by 0xAA554B: zif_odbc_exec (php_odbc.c:1688)
==6914==    by 0x11AFBB5: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:618)
==6914==    by 0x133764A: execute_ex (zend_vm_execute.h:59994)
==6914==    by 0x1337CAF: zend_execute (zend_vm_execute.h:64031)
==6914==    by 0x10CD954: zend_execute_scripts (zend.c:1510)
==6914==    by 0xFB7DFA: php_execute_script (main.c:2469)
==6914==    by 0x133D4F8: do_cli (php_cli.c:1011)
==6914==    by 0x133EEE9: main (php_cli.c:1404)
==6914== 
==6914== Conditional jump or move depends on uninitialised value(s)
==6914==    at 0xAA22A8: odbc_bindcols (php_odbc.c:1020)
==6914==    by 0xAA554B: zif_odbc_exec (php_odbc.c:1688)
==6914==    by 0x11AFBB5: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:618)
==6914==    by 0x133764A: execute_ex (zend_vm_execute.h:59994)
==6914==    by 0x1337CAF: zend_execute (zend_vm_execute.h:64031)
==6914==    by 0x10CD954: zend_execute_scripts (zend.c:1510)
==6914==    by 0xFB7DFA: php_execute_script (main.c:2469)
==6914==    by 0x133D4F8: do_cli (php_cli.c:1011)
==6914==    by 0x133EEE9: main (php_cli.c:1404)
==6914== 
==6914== Conditional jump or move depends on uninitialised value(s)
==6914==    at 0xAA234E: odbc_bindcols (php_odbc.c:1027)
==6914==    by 0xAA554B: zif_odbc_exec (php_odbc.c:1688)
==6914==    by 0x11AFBB5: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:618)
==6914==    by 0x133764A: execute_ex (zend_vm_execute.h:59994)
==6914==    by 0x1337CAF: zend_execute (zend_vm_execute.h:64031)
==6914==    by 0x10CD954: zend_execute_scripts (zend.c:1510)
==6914==    by 0xFB7DFA: php_execute_script (main.c:2469)
==6914==    by 0x133D4F8: do_cli (php_cli.c:1011)
==6914==    by 0x133EEE9: main (php_cli.c:1404)
==6914== 
==6914== Conditional jump or move depends on uninitialised value(s)
==6914==    at 0xAA5A00: php_odbc_fetch_hash (php_odbc.c:1770)
==6914==    by 0xAA65E4: zif_odbc_fetch_array (php_odbc.c:1852)
==6914==    by 0x11AFBB5: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:618)
==6914==    by 0x133764A: execute_ex (zend_vm_execute.h:59994)
==6914==    by 0x1337CAF: zend_execute (zend_vm_execute.h:64031)
==6914==    by 0x10CD954: zend_execute_scripts (zend.c:1510)
==6914==    by 0xFB7DFA: php_execute_script (main.c:2469)
==6914==    by 0x133D4F8: do_cli (php_cli.c:1011)
==6914==    by 0x133EEE9: main (php_cli.c:1404)
==6914== 
==6914== Conditional jump or move depends on uninitialised value(s)
==6914==    at 0xAA5A1B: php_odbc_fetch_hash (php_odbc.c:1770)
==6914==    by 0xAA65E4: zif_odbc_fetch_array (php_odbc.c:1852)
==6914==    by 0x11AFBB5: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:618)
==6914==    by 0x133764A: execute_ex (zend_vm_execute.h:59994)
==6914==    by 0x1337CAF: zend_execute (zend_vm_execute.h:64031)
==6914==    by 0x10CD954: zend_execute_scripts (zend.c:1510)
==6914==    by 0xFB7DFA: php_execute_script (main.c:2469)
==6914==    by 0x133D4F8: do_cli (php_cli.c:1011)
==6914==    by 0x133EEE9: main (php_cli.c:1404)
==6914== 

 

Generated at Sun, 12 Nov 2017 21:17:35 +0000 (10 days ago)

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