[Top][All Lists]

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

Re: two bugs...

From: richard
Subject: Re: two bugs...
Date: Fri, 10 Nov 2000 04:03:04 +0000

On Friday, November 10, 2000, at 01:38 AM, Benhur Stein wrote:

> Hi all, 
> I just found two bugs that were preventing my program to run 
> (current cvs snapshot version of GNUstep on Debian 2.2): 
> In -[NSGCString initWithCoder:] it takes the zone from self 
> after having released self. I added a local variable to hold 
> the zone before releasing and it worked. 

Fixed that - and added NSLog() warnings that you should replace whatever
archive contains the NSGCString class too.

> In NSBundle.m: 
> in function _bundle_load_callback() there is: 
>   if (theClass) 
>     className = NSStringFromClass(theClass); 
>   else 
>     className = [NSString stringWithCString: theCategory->class_name]; 
>   if ([NSBundle _addFrameworkFromClass: theClass] == YES) 
> which means that +[NSBundle _addFrameworkFromClass:] can be called with 
> parameter theClass being Nil. This gives a segfault in: 
> + (BOOL) _addFrameworkFromClass:(Class)frameworkClass 
> { 
>   NSBundle    *bundle; 
>   NSString    **fmClasses; 
>   NSString    *bundlePath = nil; 
>   int         len = strlen(frameworkClass->name); 

I didn't write that code ... any suggestions about how it would best be fixed?

reply via email to

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