Hi Justin,
On Wed, 2010-09-29 at 17:57 -0700, Justin Malcolm wrote:
(error) Common realloc mistake: "ptr" nulled but not freed upon
failure
Which means if realloc fails we ought to detect that, free (ptr) and
fall-back to some otherworldly case of handling OOM issues perfectly
everywhere.
The patch just defeats cppcheck I think, rather than making this any
better. Can we turn off this warning ? :-) I'd love to search for any
'realloc moves memory' type mistakes, but in a world of VM over-commit,
it no longer makes sense to write apps that handle OOM for trivial cases
IMHO :-)
Attached is the corrected patch.
Brilliant - committed,
Thanks,
Michael.
--
michael.meeks@novell.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.