[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-dev] Re: crash @CamCache::FindEntry xara-lx-gold-no-bevels-no-fractals.xar - has patch



On 11/08/06, Ben Fowler <ben.the.mole@xxxxxxxxx> wrote:
On 11/08/06, Ben Fowler <ben.the.mole@xxxxxxxxx> wrote:
> On 11/08/06, Cristian Bortes <cristian.bortes@xxxxxxxxx> wrote:
> >...
> >
> > Thread 0 Crashed:
> > 0   XaraLX                              0x00191144 CamCache::FindEntry(unsigned) + 64
> > (gcache.cpp:235)

If you catch it in the debugger, you will probably find that the
'this' pointer is nil.

The problem is that we are allowed to continue execution past an
ERROR3, and so we use a NULL pointer.

I would be tempted to guard usage of pointers with something stronger
than an ERROR3, but I suspect that this code is regarded as debugged.

Ben

Attachment: Patch_Do_not_use_uninitialised_text_rendering.diff
Description: Binary data