Bug #53512 [Opn->Csd]: NumberFormatter::setSymbol crash on bogus $attr values
| From: | felipe@php.net | Date: | Fri, 10 Dec 2010 00:51:17 +0000 |
| Subject: | Bug #53512 [Opn->Csd]: NumberFormatter::setSymbol crash on bogus $attr values | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-156848@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53512&edit=1
ID: 53512
Updated by: felipe@php.net
Reported by: thoger at redhat dot com
Summary: NumberFormatter::setSymbol crash on bogus $attr
values
-Status: Open
+Status: Closed
Type: Bug
Package: Reproducible crash
Operating System: Linux
PHP Version: 5.3.3
-Assigned To:
+Assigned To: felipe
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2010-12-10 01:47:53] felipe@php.net
Automatic comment from SVN on behalf of felipe
Revision: http://svn.php.net/viewvc/?view=revision&revision=306154
Log: - Fixed bug #53512 (NumberFormatter::setSymbol crash on bogus $attr
values)
------------------------------------------------------------------------
[2010-12-09 22:12:36] thoger at redhat dot com
Description:
------------
SVN commit r305571:
http://svn.php.net/viewvc?view=revision&revision=305571
fixed a crash in NumberFormatter::getSymbol when certain invalid values
are passed to it as $attr argument. Similar issue affects setSymbol too
and does not seem to be addressed in the above above commit. Underlying
ICU issue is similar.
Test script:
---------------
numfmt_set_symbol(numfmt_create("en", NumberFormatter::PATTERN_DECIMAL),
2147483648, "");
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53512&edit=1