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


On Thu, 2013-01-03 at 19:44 +0200, Noel Grandin wrote:
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. 

        Sigh - this brings us back to the old chestnut of the impact exceptions
have on generated code size, and (lack of) optimisation.

        I had hoped that when we last discussed it we ended up with a "try not
to use exceptions at bazillions of call-sites" approach.

        In this case I imagine sanity-checking the string length vs. some
sane / known likely bounds might work; one upper-bound for the length of
a string is presumably the size of the un-compressed .zip file.

        Then again your error sounds like pushing against the over-commit
goodness; for which there is no real cure :-)

        ATB,

                Michael.

-- 
michael.meeks@suse.com  <><, Pseudo Engineer, itinerant idiot


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.