PHP  
 PHP_7_1
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

==1538== Conditional jump or move depends on uninitialised value(s)
==1538==    at 0xA60202: odbc_bindcols (php_odbc.c:972)
==1538==    by 0xA637D2: zif_odbc_exec (php_odbc.c:1699)
==1538==    by 0x10F5C34: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==1538==    by 0x10F2D8F: execute_ex (zend_vm_execute.h:429)
==1538==    by 0x10F397F: zend_execute (zend_vm_execute.h:474)
==1538==    by 0x101454E: zend_execute_scripts (zend.c:1482)
==1538==    by 0xF07BBE: php_execute_script (main.c:2577)
==1538==    by 0x125C620: do_cli (php_cli.c:993)
==1538==    by 0x125E0B9: main (php_cli.c:1381)
==1538== 
==1538== Use of uninitialised value of size 8
==1538==    at 0xA60213: odbc_bindcols (php_odbc.c:972)
==1538==    by 0xA637D2: zif_odbc_exec (php_odbc.c:1699)
==1538==    by 0x10F5C34: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==1538==    by 0x10F2D8F: execute_ex (zend_vm_execute.h:429)
==1538==    by 0x10F397F: zend_execute (zend_vm_execute.h:474)
==1538==    by 0x101454E: zend_execute_scripts (zend.c:1482)
==1538==    by 0xF07BBE: php_execute_script (main.c:2577)
==1538==    by 0x125C620: do_cli (php_cli.c:993)
==1538==    by 0x125E0B9: main (php_cli.c:1381)
==1538== 
==1538== Conditional jump or move depends on uninitialised value(s)
==1538==    at 0xA60471: odbc_bindcols (php_odbc.c:1024)
==1538==    by 0xA637D2: zif_odbc_exec (php_odbc.c:1699)
==1538==    by 0x10F5C34: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==1538==    by 0x10F2D8F: execute_ex (zend_vm_execute.h:429)
==1538==    by 0x10F397F: zend_execute (zend_vm_execute.h:474)
==1538==    by 0x101454E: zend_execute_scripts (zend.c:1482)
==1538==    by 0xF07BBE: php_execute_script (main.c:2577)
==1538==    by 0x125C620: do_cli (php_cli.c:993)
==1538==    by 0x125E0B9: main (php_cli.c:1381)
==1538== 
==1538== Conditional jump or move depends on uninitialised value(s)
==1538==    at 0xA60514: odbc_bindcols (php_odbc.c:1031)
==1538==    by 0xA637D2: zif_odbc_exec (php_odbc.c:1699)
==1538==    by 0x10F5C34: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==1538==    by 0x10F2D8F: execute_ex (zend_vm_execute.h:429)
==1538==    by 0x10F397F: zend_execute (zend_vm_execute.h:474)
==1538==    by 0x101454E: zend_execute_scripts (zend.c:1482)
==1538==    by 0xF07BBE: php_execute_script (main.c:2577)
==1538==    by 0x125C620: do_cli (php_cli.c:993)
==1538==    by 0x125E0B9: main (php_cli.c:1381)
==1538== 
==1538== Conditional jump or move depends on uninitialised value(s)
==1538==    at 0xA605B7: odbc_bindcols (php_odbc.c:1038)
==1538==    by 0xA637D2: zif_odbc_exec (php_odbc.c:1699)
==1538==    by 0x10F5C34: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==1538==    by 0x10F2D8F: execute_ex (zend_vm_execute.h:429)
==1538==    by 0x10F397F: zend_execute (zend_vm_execute.h:474)
==1538==    by 0x101454E: zend_execute_scripts (zend.c:1482)
==1538==    by 0xF07BBE: php_execute_script (main.c:2577)
==1538==    by 0x125C620: do_cli (php_cli.c:993)
==1538==    by 0x125E0B9: main (php_cli.c:1381)
==1538== 
==1538== Conditional jump or move depends on uninitialised value(s)
==1538==    at 0xA63C31: php_odbc_fetch_hash (php_odbc.c:1781)
==1538==    by 0xA64786: zif_odbc_fetch_array (php_odbc.c:1863)
==1538==    by 0x10F5C34: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==1538==    by 0x10F2D8F: execute_ex (zend_vm_execute.h:429)
==1538==    by 0x10F397F: zend_execute (zend_vm_execute.h:474)
==1538==    by 0x101454E: zend_execute_scripts (zend.c:1482)
==1538==    by 0xF07BBE: php_execute_script (main.c:2577)
==1538==    by 0x125C620: do_cli (php_cli.c:993)
==1538==    by 0x125E0B9: main (php_cli.c:1381)
==1538== 
==1538== Conditional jump or move depends on uninitialised value(s)
==1538==    at 0xA63C4C: php_odbc_fetch_hash (php_odbc.c:1781)
==1538==    by 0xA64786: zif_odbc_fetch_array (php_odbc.c:1863)
==1538==    by 0x10F5C34: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:675)
==1538==    by 0x10F2D8F: execute_ex (zend_vm_execute.h:429)
==1538==    by 0x10F397F: zend_execute (zend_vm_execute.h:474)
==1538==    by 0x101454E: zend_execute_scripts (zend.c:1482)
==1538==    by 0xF07BBE: php_execute_script (main.c:2577)
==1538==    by 0x125C620: do_cli (php_cli.c:993)
==1538==    by 0x125E0B9: main (php_cli.c:1381)
==1538== 

 

Generated at Sun, 23 Feb 2020 16:49:06 +0000 (2 days ago)

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