com php-src: - Fixed bug #62525 (sigabrt while converting floating point to string): main/snprintf.c

From: Date: Sat, 14 Jul 2012 18:15:11 +0000
Subject: com php-src: - Fixed bug #62525 (sigabrt while converting floating point to string): main/snprintf.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-69584@lists.php.net to get a copy of this message
Commit: 63f3962a9015cd119b028e4c6e3f5533fb9f38e0 Author: Felipe Pena <felipensp@gmail.com> Sat, 14 Jul 2012 15:15:11 -0300 Parents: 864575251ac85176b763a56b35c2da298e0d0fa7 Branches: PHP-5.3 PHP-5.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=63f3962a9015cd119b028e4c6e3f5533fb9f38e0 Log: - Fixed bug #62525 (sigabrt while converting floating point to string) Bugs: https://bugs.php.net/62525 Changed paths: M main/snprintf.c Diff: diff --git a/main/snprintf.c b/main/snprintf.c index 46b1464..1e0e455 100644 --- a/main/snprintf.c +++ b/main/snprintf.c @@ -94,7 +94,7 @@ static char * __cvt(double value, int ndigit, int *decpt, int *sign, int fmode, *decpt = 0; c = *p; zend_freedtoa(p); - return(c == 'I' ? "INF" : "NAN"); + return strdup((c == 'I' ? "INF" : "NAN")); } /* Make a local copy and adjust rve to be in terms of s */ if (pad && fmode) {

« previous php.cvs (#69584) next »