The crash is in new code introduced into 5.3+, the 5.2 branch is not affected by the bug.


On 17-Jan-08, at 4:25 PM, Antony Dovgal wrote:

No commit to 5_2 ?

On 17.01.2008 17:12, Ilia Alshanetsky wrote:
iliaa           Thu Jan 17 14:12:13 2008 UTC

 Modified files:              (Branch: PHP_5_3)
   /php-src/ext/standard        dns.c
 Log:

 Fixed bug #43871 (crash inside dns_get_record)


http://cvs.php.net/viewvc.cgi/php-src/ext/standard/dns.c?r1=1.70.2.7.2.5.2.3&r2=1.70.2.7.2.5.2.4&diff_format=u
Index: php-src/ext/standard/dns.c
diff -u php-src/ext/standard/dns.c:1.70.2.7.2.5.2.3 php-src/ext/ standard/dns.c:1.70.2.7.2.5.2.4 --- php-src/ext/standard/dns.c:1.70.2.7.2.5.2.3 Mon Dec 31 07:17:14 2007
+++ php-src/ext/standard/dns.c  Thu Jan 17 14:12:12 2008
@@ -18,7 +18,7 @@
+ ----------------------------------------------------------------------+
 */

-/* $Id: dns.c,v 1.70.2.7.2.5.2.3 2007/12/31 07:17:14 sebastian Exp $ */
+/* $Id: dns.c,v 1.70.2.7.2.5.2.4 2008/01/17 14:12:12 iliaa Exp $ */

/* {{{ includes */
#include "php.h"
@@ -654,7 +654,7 @@
        char *hostname;
        int hostname_len;
        long type_param = PHP_DNS_ANY;
-       zval *authns, *addtl;
+       zval *authns = NULL, *addtl = NULL;
        int addtl_recs = 0;
        int type_to_fetch;
        struct __res_state res;



--
Wbr,
Antony Dovgal

--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Ilia Alshanetsky

--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to