https://bugs.documentfoundation.org/show_bug.cgi?id=166195

--- Comment #8 from Eike Rathke <[email protected]> ---
No, nLen<=6 does not ensure that temp will be positive, the number string could
be "-99999". But actually it's more complicated, the -32768 <= year <= 32767
constraint is for the underlying proleptic Gregorian calendar, but the
ImpSvNumberInputScan::ImplGetYear() function is used with all possible
calendars. A, for example, Buddhist or Islamic or Jewish calendar would have a
5000 or 1600 or 3000 something years offset. I'm not sure how to handle this,
or if the check should rather be applied only to a Gregorian calendar, which
currently seems best to me.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to