We're updating the issue view to help you get more done. 

ICU4C DecimalFormat crashes when parsing very long number

Description

Code to reproduce:

1 2 3 4 5 6 7 8 9 10 LocalPointer<NumberFormat> nf(NumberFormat::createInstance(EN, status)); Formattable result; static const char16_t* bigString = u"111111111111111111111111111111111111111111111111111111111111111111111" u"111111111111111111111111111111111111111111111111111111111111111111111" u"111111111111111111111111111111111111111111111111111111111111111111111" u"111111111111111111111111111111111111111111111111111111111111111111111" u"111111111111111111111111111111111111111111111111111111111111111111111" u"111111111111111111111111111111111111111111111111111111111111111111111"; nf->parse(bigString, result, status);

I have a fix ready to commit.

Environment

Status

Assignee

Shane Carr

Reporter

Shane Carr

Labels

tracCreated

Jun 19, 2018, 9:06 PM

tracOwner

shane

tracProject

all

tracReporter

shane

tracResolution

fixed

tracReviewer

andy

tracStatus

closed

Components

Fix versions

Priority

critical