Bug 443537 - inkscape-0.46-62.21: 3 * call to wrong C++ delete
Summary: inkscape-0.46-62.21: 3 * call to wrong C++ delete
Status: RESOLVED UPSTREAM
Alias: None
Product: openSUSE 11.1
Classification: openSUSE
Component: Other (show other bugs)
Version: Factory
Hardware: All openSUSE 11.0
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL: https://bugs.launchpad.net/inkscape/+...
Whiteboard:
Keywords: should_go_upstream
Depends on:
Blocks:
 
Reported: 2008-11-10 21:20 UTC by David Binderman
Modified: 2009-01-21 10:50 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2008-11-10 21:20:11 UTC
I just checked some of the source code in the Suse Linux factory package
inkscape-0.46-62.21 and I noticed the following

$ egrep "new|delete" ../BUILD/inkscape-0.46/src/dom/domstring.cpp
        delete cstring;
        delete cstring;
        delete cstring;
    cstring = new char[length+1];

The three calls to delete seem to be wrong.
Suggest new code

        delete [] cstring; cstring = NULL;
Comment 1 Vincent Untz 2009-01-21 10:50:42 UTC
Forwarded: https://bugs.launchpad.net/inkscape/+bug/319550