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: Roland Schwingel
Subject: Re: Re2: Crash when trying to load corrupt file with NSDictionary -initWithContentsOfFile:
Date: Wed, 06 Jul 2005 10:25:18 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20040910

Hi...

So I am back, sorry for the delay. Wow what a thread.
Well I was adding the break; to just have a clean exit of the switch even in the case that that -raise returns. And IMHO the break; should be added to NSSerializer.m to make it truely save.

Roland

David Ayers wrote on 01.07.2005 03:41:58:
> All,
>
> --- David Ayers <d.ayers@inode.at> wrote:
>
> > Richard Frith-Macdonald wrote:
> > > On 2005-06-30 12:14:37 +0100 David Ayers <d.ayers@inode.at> wrote:
> > >
> > >> Richard Frith-Macdonald wrote:
> > >>
> > >>
> > >>
> > >> 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.
> >
> > I violently agree, yet others saw this as a feature.
> >
> > > 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).
>
> That's not entirely accurate...
> > > It seems they also saw the light :-)
> >
> > > I guess we need to correct the implementation of -raise
> >
> > I'm all for it.
>
> Just to clarify, the docs say:
>
> "The program then terminates, regardless of the actions taken by the *uncaught*
> exception handler."
>
> from:
>
> http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ObjC_classic/Classes/NSException.
> html#//apple_ref/doc/uid/20000061-CJHDDFII
>
> >
> > Cheers,
> > David
>
> Later, GJC
>
> Gregory John Casamento
> -- CEO/President Open Logic Corp. (A MD Corp.)
> ## Maintainer of Gorm (IB Equiv.) for GNUstep.
>
>
> _______________________________________________
> Bug-gnustep mailing list
> Bug-gnustep@gnu.org
> http://lists.gnu.org/mailman/listinfo/bug-gnustep
>





reply via email to

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