]> granicus.if.org Git - php/commitdiff
Fixed bug #60947 (Segmentation fault while executing ibase_db_info)
authorIlia Alshanetsky <iliaa@php.net>
Thu, 15 Mar 2012 19:59:26 +0000 (19:59 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 15 Mar 2012 19:59:26 +0000 (19:59 +0000)
NEWS
ext/interbase/ibase_service.c

diff --git a/NEWS b/NEWS
index 1d01aa74f1dd49f5401e0006a943e2d1b417ae0c..355a651120383ecff801f9625fd8c40b701608a6 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -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)
 
index 5d8fbe49030caa6458db7b33f768ca60b60fb6d1..6faaa564d5de2ab9026b780e29a17c4b8d0ea86e 100644 (file)
@@ -321,6 +321,7 @@ query_loop:
                                        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 */