Verify precision length before converting to string.
Verify precision length before converting to string.

This CL updates the CalculateString method to make sure the number of digits
of precision is valid before doing the stringstream conversion.

BUG=chromium:673336

Review-Url: https://codereview.chromium.org/2572543004

DrAlexx/pdfium,DrAlexx/pdfium,DrAlexx/pdfium,DrAlexx/pdfium