Hello Kohei,
I would be interested to know how to reproduce this crash. Do you have
a good way to reproduce this?
Try fdo#43703 in master. This bug shows two problems. Firstly the
problem in math.cxx and secondly as already done with
http://cgit.freedesktop.org/libreoffice/core/commit/?h=libreoffice-3-5&id=8216e8551dad8a3bbedb4b8e663b2d96570270a0
to handle infinite values correctly.
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.
Well, I'm not necessarily objecting, but I'm a bit puzzled. I would've
thought that, if nExp < 0 is true, -nExp > 0 is automatically true.
Anyway, if you have a code snippet that can make this code to segfault,
that would help me understand this better.
As described by Lionel this is true for all integers except for
numeric_limits<int>::min(). It is a really strange corner case but as
we see with the mentioned bug report we may get it from time to time
and I can not gurantee that this was the only place where we could
have called this method with this number. I will add a comment as
Stephan suggested.
Markus
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.