PHP  
 PHP_7_3
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Valgrind Report for ext/odbc/tests/bug80147.phpt ('Bug #80147 (BINARY strings may not be properly zero-terminated)')

Script

1: <?php
2:
include 'config.inc';
3:
4:
$conn odbc_connect($dsn$user$pass);
5:
6:
odbc_exec($conn"CREATE TABLE bug80147 (id INT, whatever VARBINARY(50))");
7:
odbc_exec($conn"INSERT INTO bug80147 VALUES (1, CONVERT(VARBINARY(50), 'whatever'))");
8:
9:
$res odbc_exec($conn"SELECT * FROM bug80147");
10:
odbc_binmode($resODBC_BINMODE_RETURN);
11:
odbc_fetch_row($res);
12:
var_dump(odbc_result($res'whatever'));
13:
?>
14:

Report

==28728== Conditional jump or move depends on uninitialised value(s)
==28728==    at 0xB15E29: odbc_bindcols (php_odbc.c:966)
==28728==    by 0xB19497: zif_odbc_exec (php_odbc.c:1698)
==28728==    by 0x13AFD89: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:694)
==28728==    by 0x13AFD89: execute_ex (zend_vm_execute.h:55503)
==28728==    by 0x13D78A5: zend_execute (zend_vm_execute.h:60935)
==28728==    by 0x11903BE: zend_execute_scripts (zend.c:1568)
==28728==    by 0x107C733: php_execute_script (main.c:2637)
==28728==    by 0x13DD66B: do_cli (php_cli.c:1000)
==28728==    by 0x13DF1BD: main (php_cli.c:1396)
==28728== 
==28728== Use of uninitialised value of size 8
==28728==    at 0xB15E3A: odbc_bindcols (php_odbc.c:966)
==28728==    by 0xB19497: zif_odbc_exec (php_odbc.c:1698)
==28728==    by 0x13AFD89: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:694)
==28728==    by 0x13AFD89: execute_ex (zend_vm_execute.h:55503)
==28728==    by 0x13D78A5: zend_execute (zend_vm_execute.h:60935)
==28728==    by 0x11903BE: zend_execute_scripts (zend.c:1568)
==28728==    by 0x107C733: php_execute_script (main.c:2637)
==28728==    by 0x13DD66B: do_cli (php_cli.c:1000)
==28728==    by 0x13DF1BD: main (php_cli.c:1396)
==28728== 
==28728== Conditional jump or move depends on uninitialised value(s)
==28728==    at 0xB160DA: odbc_bindcols (php_odbc.c:1024)
==28728==    by 0xB19497: zif_odbc_exec (php_odbc.c:1698)
==28728==    by 0x13AFD89: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:694)
==28728==    by 0x13AFD89: execute_ex (zend_vm_execute.h:55503)
==28728==    by 0x13D78A5: zend_execute (zend_vm_execute.h:60935)
==28728==    by 0x11903BE: zend_execute_scripts (zend.c:1568)
==28728==    by 0x107C733: php_execute_script (main.c:2637)
==28728==    by 0x13DD66B: do_cli (php_cli.c:1000)
==28728==    by 0x13DF1BD: main (php_cli.c:1396)
==28728== 
==28728== Conditional jump or move depends on uninitialised value(s)
==28728==    at 0xB1617D: odbc_bindcols (php_odbc.c:1031)
==28728==    by 0xB19497: zif_odbc_exec (php_odbc.c:1698)
==28728==    by 0x13AFD89: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:694)
==28728==    by 0x13AFD89: execute_ex (zend_vm_execute.h:55503)
==28728==    by 0x13D78A5: zend_execute (zend_vm_execute.h:60935)
==28728==    by 0x11903BE: zend_execute_scripts (zend.c:1568)
==28728==    by 0x107C733: php_execute_script (main.c:2637)
==28728==    by 0x13DD66B: do_cli (php_cli.c:1000)
==28728==    by 0x13DF1BD: main (php_cli.c:1396)
==28728== 
==28728== Conditional jump or move depends on uninitialised value(s)
==28728==    at 0xB16220: odbc_bindcols (php_odbc.c:1038)
==28728==    by 0xB19497: zif_odbc_exec (php_odbc.c:1698)
==28728==    by 0x13AFD89: ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:694)
==28728==    by 0x13AFD89: execute_ex (zend_vm_execute.h:55503)
==28728==    by 0x13D78A5: zend_execute (zend_vm_execute.h:60935)
==28728==    by 0x11903BE: zend_execute_scripts (zend.c:1568)
==28728==    by 0x107C733: php_execute_script (main.c:2637)
==28728==    by 0x13DD66B: do_cli (php_cli.c:1000)
==28728==    by 0x13DF1BD: main (php_cli.c:1396)
==28728== 

 

Generated at Fri, 17 Sep 2021 16:14:14 +0000 (6 days ago)

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