bugGNUstep - Bugs: bug #11516, Crash with...

Group
 
 

bug #11516: Crash with TimeZone/CalendarDate/Autorelease

Submitter:  Manuel Guesdon <mguesdon>
Submitted:  Fri 07 Jan 2005 12:32:30 PM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  fedor
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 07 Jan 2005 03:36:30 PM UTC, comment #1: 

My bad. Fixed.

  • Source/NSTimeZone.m (+abbreviationDictionary): Retain dictionary.


Adam Fedor <fedor>
Group administrator
Fri 07 Jan 2005 12:32:30 PM UTC, original submission:  

Just put this in main():
  {
  NSAutoreleasePool     *arpTest = [NSAutoreleasePool new];
id d=[[NSCalendarDate alloc] initWithString: @"04/02/2004 16:53:41 CEST"
                             calendarFormat: @"%m/%d/%Y %H:%M:%S %Z"];
 NSLog(@"d=%@",d);
  [arpTest release];
  }
  {
  NSAutoreleasePool     *arpTest = [NSAutoreleasePool new];
id d=[[NSCalendarDate alloc] initWithString: @"04/02/2004 16:53:41 CEST"
                             calendarFormat: @"%m/%d/%Y %H:%M:%S %Z"];
 NSLog(@"d=%@",d);
  [arpTest release];
  }

(2 times)
The 2nd time, it crash:
2005-01-07 13:28:01.000 x[22382] Unknown time zone name `CEST'.
2005-01-07 13:28:01.000 x[22382] d=04/02/2004 16:53:41 CEST
2005-01-07 13:28:01.000 x[22382] Unknown time zone name `CEST'.

Manuel Guesdon <mguesdon>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-01-07 fedor Severity6 - Security 3 - Normal
    StatusNone Fixed
    Assigned toNone fedor
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code