Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


2013/1/3 Noel Grandin <noelgrandin@gmail.com>:
We could throw a StringAllocationFailed exception, and catch it near the
bottom if the import process, and use that to indicate that the document is
corrupt.


The document is not corrupt. IT is perfectly fine, the problem is
either in our import code, which just misses sanity checks for quite a
lot of input, or in the string class which can't handle with such
situations at all. Since we have quite a lot of these places in the
import code it might be better to find a solution in the string
class.'m not sure if

I'm not sure if throwing an exception is a good idea in this case as
this might result in exceptions in constructors and even worse in
destructors. It might be a solution to return an empty string or
something like that in these cases or something like that and log it
in a dbgutil build.

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.