Skip to content

Commit 8e0fb23

Browse files
committed
Update for situation
1 parent 5f20d7f commit 8e0fb23

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ibm_db2.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5853,12 +5853,16 @@ PHP_FUNCTION(db2_result)
58535853
in_length++;
58545854
}
58555855
/*
5856-
* CB 20210128: SQL/CLI bug caused by a PTF makes SQLGetData |
5856+
* CB 20210128: SQL/CLI bug caused by a PTF makes SQLGetData
58575857
* return more data than what was provided from it - seems to
58585858
* be almost the data it would have returned /plus/ the input
58595859
* length. To compensate, we'll allocate twice as much, but
58605860
* only provide the real length. This is awful and dumb, but
58615861
* it might be necessary to prevent a buffer overflow.
5862+
*
5863+
* (20210309 update): The following i PTF may fix this issue,
5864+
* according to a user report: SI75759
5865+
* 5770SS1-OSP-DB-OTHER-INCORROUT USING SQLCLI AND CALLING SQLGETDATA A
58625866
*/
58635867
out_ptr = (SQLPOINTER)ecalloc(1, in_length * 2);
58645868
if ( out_ptr == NULL ) {

0 commit comments

Comments
 (0)