tballison opened a new pull request, #1473:
URL: https://github.com/apache/poi/pull/1473

   …digits
   
   Found during regression tests on the TIKA-1132 triggering file.
   
    SimpleFraction: a zero or tiny remainder (e.g. one ulp from 1/10 or 1/324) 
made the next partial quotient Long.MAX_VALUE; q2 wrapped negative, slipped 
past the max-denominator check, and the overflow check threw. Return the 
current convergent instead. Since #1406 that exception escaped 
CellNumberFormatter.writeFraction and failed the whole workbook; restore the 
catch around the fraction computation too.
   
   Separately, CellNumberFormatter: cap denominator digits at 9; 10 or more 
overflowed an int and the format threw when applied, including through 
DataFormatter's fraction-with-text path.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to