Bug 444971

Summary: libvisual-plugins-0.4.0-226.16: 2 * undefined code
Product: [openSUSE] openSUSE 11.1 Reporter: David Binderman <dcb314>
Component: OtherAssignee: E-mail List <kde-maintainers>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Minor    
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-14 09:14:14 UTC
I just checked some of the source code in the Suse Linux factory package
libvisual-plugins-0.4.0-226.16 and I noticed the following

$ egrep "new|delete" ../BUILD/libvisual-plugins-0.4.0/plugins/actor/G-Force/Common/GeneralTools/UtilStr.cpp | fgrep mBuf
                delete mBuf;
                if ( newLen >= mBufSize ) {
                                mBufSize = newLen + 5;
                                mBufSize = newLen + 100;
                        else mBufSize = newLen + 3000;
                        mBuf = new char[ mBufSize + 2 ];        // One for pascal byte, one for c NUL byte


Suggest replace the  delete with

                delete [] mBuf; mBuf = NULL;

Similar fun & games at file ../BUILD/libvisual-plugins-0.4.0/plugins/actor/G-Force/Common/io/CEgIFile.cpp,
line 309, variable buf
Comment 1 Stephan Binner 2008-11-14 09:42:00 UTC

*** This bug has been marked as a duplicate of bug 442933 ***