Artifacts Associated With Ticket 218679
Ticket change [ca46ac177d] (rid 122436) by nobody on 2000-10-26 01:04:03:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 1719 Bug Version: 8.0.4 SubmitDate: '1999-04-05' LastModified: '1999-09-16' Severity: MED Status: Released Submitter: pat ChangedBy: hobbs OS: All OSVersion: NA Machine: NA FixedDate: '1999-09-16' FixedInVersion: 8.2.2 ClosedDate: '2000-10-25' Name: Steven Ryan email: [email protected] Support: None Severity: 3 Synopsis: Checked free and realloc abort on null pointers. ReproducibleScript: Tcl_DbCkfree(NULL,__FILE___,__LINE__) and Tcl_DbCkrealloc(NULL,1,__FILE__,__LINE__) abort with an illegal address (NULL). Comments: In Tcl_DbCkfree struct mem_header *memp = (struct mem_header *) (((unsigned long) ptr) - BODY_OFFSET); should be struct mem_header *memp; if (ptr == NULL) { return; } memp = (struct mem_header *) (((unsigned long) ptr) - BODY_OFFSET); In Tcl_DbCkrealloc struct mem_header *memp = (struct mem_header *) (((unsigned long) ptr) - BODY_OFFSET); should be struct mem_header *memp; if (ptr == NULL) { return Tcl_DbCkalloc(size, file, line); } memp = (struct mem_header *) (((unsigned long) ptr) - BODY_OFFSET); Added to 8.3b1. -- 09/16/1999 hobbs
- foundin initialized to: "obsolete: 8.0.4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "Checked free and realloc abort on null pointers"
- type initialized to: "Bug"
Ticket change [48a23c3317] (rid 99927) by welch on 2000-10-26 08:27:10:
- closedate changed to: "2000-10-26T01:27:10"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [a5dcc0781d] (rid 110446) by dgp on 2001-04-16 23:08:12:
- closedate changed to: "2001-04-16T16:08:12"
- closer changed to: "dgp"
- subsystem changed to: "41. Memory Allocation"