Skip to content

Commit 1ef5fa8

Browse files
author
Ilia Alshanetsky
committed
Fixed bug #60947 (Segmentation fault while executing ibase_db_info)
1 parent 601d17d commit 1ef5fa8

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
@@ -29,6 +29,10 @@ PHP NEWS
2929
function is by reference). (Nikita Popov)
3030
. Fixed bug #51860 (Include fails with toplevel symlink to /). (Dmitry)
3131

32+
- Ibase
33+
. Fixed bug #60947 (Segmentation fault while executing ibase_db_info).
34+
(Ilia)
35+
3236
- Installation
3337
. Fixed bug #61172 (Add Apache 2.4 support). (Chris Jones)
3438

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)