Skip to content

Commit 2dee9ec

Browse files
author
Ilia Alshanetsky
committed
Fixed bug #60947 (Segmentation fault while executing ibase_db_info)
1 parent 0af900f commit 2dee9ec

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

NEWS

+4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ PHP NEWS
3838
. Fixed bug #52719 (array_walk_recursive crashes if third param of the
3939
function is by reference). (Nikita Popov)
4040

41+
- Ibase
42+
. Fixed bug #60947 (Segmentation fault while executing ibase_db_info).
43+
(Ilia)
44+
4145
- Installation
4246
. Fixed bug #61172 (Add Apache 2.4 support). (Chris Jones)
4347

ext/interbase/ibase_service.c

+1
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ static void _php_ibase_service_query(INTERNAL_FUNCTION_PARAMETERS, /* {{{ */
321321
heap_p = heap_buf + res_size;
322322
}
323323
result += 2;
324+
*(result+line_len) = 0;
324325
snprintf(heap_p, heap_buf_size - (heap_buf - heap_p), "%s\n", result);
325326
heap_p += line_len +2;
326327
goto query_loop; /* repeat until result is exhausted */

0 commit comments

Comments
 (0)