Bug 443438

Summary: ghostscript-library-8.62-61.15: call to wrong C++ delete
Product: [openSUSE] openSUSE 11.1 Reporter: David Binderman <dcb314>
Component: OtherAssignee: Dr. Werner Fink <werner>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Factory   
Target Milestone: ---   
Hardware: All   
OS: openSUSE 11.0   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Binderman 2008-11-10 16:03:13 UTC
I just checked some of the source code in the Suse Linux factory package
ghostscript-library-8.62-61.15 and I noticed the following

$ egrep "new|delete" ../BUILD/ghostscript-8.62/Omni/DeviceFontSandBox/XmlFile.cpp
  fileName = new char[1+strlen(path)];
 * The destructor deletes the xml DOM tree and its rootNode pointer.
      delete fileName;

Suggest change call to delete to

      delete [] fileName; fileName = NULL;
Comment 1 Dr. Werner Fink 2008-11-10 16:34:38 UTC
Report this *upstream* ... 
Comment 2 Dr. Werner Fink 2008-11-10 16:55:17 UTC
This file is not compiled nor used in any other way.