bugConcurrent Versions System - Bugs: bug #14462, memory allocation error in...

 
 

bug #14462: memory allocation error in RCS_parse

Submitter:  None
Submitted:  Wed 07 Sep 2005 07:30:24 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Release:  <1.11.20 & <1.12.12
Fixed Release:  1.11.21 Fixed Feature Release:  1.12.13
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 07 Sep 2005 10:52:57 PM UTC, comment #1: 

Fixed!  Thanks!

Derek Robert Price <dprice>
Group administrator
Wed 07 Sep 2005 07:30:24 PM UTC, original submission:  

The variable rcsfile is freed but used afterwards in an error-call:

RCSNode *
RCS_parse (const char *file, const char *repos)
{
    RCSNode *rcs;
    FILE *fp;
    RCSNode *retval = NULL;
    char *rcsfile;
    int inattic;

...
    else if (! existence_error (errno))
    {
// here it is!
free ( rcsfile );
error (0, errno, "cannot open %s", rcsfile);
    }

    return retval;
}

Anonymous

 

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

Date Changed by Updated Field Previous Value => Replaced by
2005-09-07 dprice StatusNone Fixed
    Open/ClosedOpen Closed
    Release <1.11.20 & <1.12.12
    Fixed ReleaseNone 1.11.21
    Fixed Feature ReleaseNone 1.12.13

Back to the top

Powered by Savane 3.13-3230.
Corresponding source code