Skip to content

Commit

Permalink
Fixed bug #60947 (Segmentation fault while executing ibase_db_info)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia Alshanetsky committed Mar 15, 2012
1 parent 601d17d commit 1ef5fa8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ PHP NEWS
function is by reference). (Nikita Popov)
. Fixed bug #51860 (Include fails with toplevel symlink to /). (Dmitry)

- Ibase
. Fixed bug #60947 (Segmentation fault while executing ibase_db_info).
(Ilia)

- Installation
. Fixed bug #61172 (Add Apache 2.4 support). (Chris Jones)

Expand Down
1 change: 1 addition & 0 deletions ext/interbase/ibase_service.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ static void _php_ibase_service_query(INTERNAL_FUNCTION_PARAMETERS, /* {{{ */
heap_p = heap_buf + res_size;
}
result += 2;
*(result+line_len) = 0;
snprintf(heap_p, heap_buf_size - (heap_buf - heap_p), "%s\n", result);
heap_p += line_len +2;
goto query_loop; /* repeat until result is exhausted */
Expand Down

0 comments on commit 1ef5fa8

Please sign in to comment.