bug-gnustep
[Top][All Lists]
Advanced

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

Re: Re2: Crash when trying to load corrupt file with NSDictionary -initW


From: Richard Frith-Macdonald
Subject: Re: Re2: Crash when trying to load corrupt file with NSDictionary -initWithContentsOfFile:
Date: Thu, 30 Jun 2005 12:55:52 +0100

On 2005-06-30 12:14:37 +0100 David Ayers <d.ayers@inode.at> wrote:

Richard Frith-Macdonald wrote:



Wierd ... that didn't happen to me.
In the code I comitted, it should be impossible to fall through to the
ST_CSTRING case, as we have three possible paths through the ST_XREF case:

1. the array is uninitialised and we raise an exception.
2. the array index is invalid and we raise an exception.
3. we return the cross referenced object from the array.

I deleted my local copy and checked it out from CVS, and the checked out
code looks fine ... so perhaps your version is messed up somehow.  Could
you try deleting your local copy and checking out a fresh copy of the file?

FWIW, remember that -raise technically can return!  See the past
discussion about the uncaught exception handler in -gui.

I missed that ... I think it's a bug.

The -raise method should never return ... that's the MacOS-X behavior (and the MacOS-X documentation says that -raise will terminate the program irrespective of the behavior of the exception handler).

I guess we need to correct the implementation of -raise




reply via email to

[Prev in Thread] Current Thread [Next in Thread]