bugGNUstep - Bugs: bug #14022, Remove nil object (NSMapRemove) in...

Group
 
 

bug #14022: Remove nil object (NSMapRemove) in SQLClient on Mac.

Submitter:  -Deleted Account- <yjchen>
Submitted:  Wed 03 Aug 2005 06:48:37 AM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 03 Aug 2005 07:06:22 AM UTC, comment #1: 

Thanks ... I added the workaround for that bug in the apple Foundation.

Richard Frith-Macdonald <CaS>
Group Member
Wed 03 Aug 2005 06:48:37 AM UTC, original submission:  

There is a bug I noticed while writing a SQLite bundle for SQLClient.
It crashes while trying to remove a nil object on Mac OSX.
Here is a patch.

* SQLClient.m.orig    Tue Aug  2 23:43:08 2005
--- SQLClient.m Tue Aug  2 23:39:02 2005
*************
* 967,973 **
          [self disconnect];
        }
        RETAIN(self);
!       NSMapRemove(cache, (void*)_name);
        ASSIGNCOPY(_name, s);
        ASSIGN(_client, [[NSProcessInfo processInfo] globallyUniqueString]);
        NSMapInsert(cache, (void*)_name, (void*)self);
--- 967,974 ----
          [self disconnect];
        }
        RETAIN(self);
!       if (_name)
!           NSMapRemove(cache, (void*)_name);
        ASSIGNCOPY(_name, s);
        ASSIGN(_client, [[NSProcessInfo processInfo] globallyUniqueString]);
        NSMapInsert(cache, (void*)_name, (void*)self);

-Deleted Account- <yjchen>

 

(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 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-08-03 CaS StatusNone Fixed
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code