[Libreoffice] [PATCH] fix for crash in math.cxx for std::numeric_limits<int>::min

Markus Mohrhard markus.mohrhard at googlemail.com
Mon Dec 12 15:15:08 PST 2011


the attached patch fixes a crash in our rtl::math lib. For
std::numeric_limits<int>::min() -nExp is the same as nExp and
therefore we would be in the first case and try to access a non
existing element.

Any objections against this patch? I think that this fix should be
correct for all cases but it would be good if someone could have a
look at it.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fix-crash-for-std-numeric_limits-int-min-in-our-math.patch
Type: text/x-patch
Size: 784 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20111213/75f8b444/attachment.bin>

More information about the LibreOffice mailing list