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


Pierre-André Jacquod wrote:
B2DTuple(const B2DTuple& rTup)
... 
Here you dereference the null pointer, which crash.

Ok, the basic attitude would be to let B2DTuple be Null-pointer
consistent: (checking that rTup is not NULL), but is it really a
good idea?

Hi Pierre-André,

no, what's passed is a reference, which by definition is always
de-referencable - so the bug is in the calling code.

Or should I look higher in the hierarchy, saying that a NULL point
in a B2DPolygon has nothing to do and disallow it ?

Yes, the calling code somehow accesses invalid elements. Let me have
a look.

Cheers,

-- Thorsten

Attachment: pgpwvmDFWOV6x.pgp
Description: PGP signature


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.