[Bug 442811] New: abiword-2.6.4-42.19: call to wrong C++ delete
https://bugzilla.novell.com/show_bug.cgi?id=442811 Summary: abiword-2.6.4-42.19: call to wrong C++ delete Product: openSUSE 11.1 Version: Factory Platform: All OS/Version: openSUSE 11.0 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dcb314@hotmail.com QAContact: qa@suse.de Found By: --- I just checked some of the source code in the Suse Linux factory package abiword-2.6.4-42.19 and I noticed the following $ fgrep m_pArPens ../BUILD/abiword-2.6.4/src/af/gr/win/gr_Win32Graphics.cpp | egrep "new|delete" m_pArPens = new GR_Win32Graphics::CACHE_PEN [_MAX_CACHE_PENS]; delete m_pArPens; C++ array new used, but plain delete used. The delete should be delete [] m_pArPens; Even better, set the member variable to zero to ensure any future use won't work. delete [] m_pArPens; m_pArPens = NULL; -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=442811
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=442811
User vuntz@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=442811#c1
Vincent Untz
https://bugzilla.novell.com/show_bug.cgi?id=442811
User hfiguiere@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=442811#c2
Hubert Figuiere
participants (1)
-
bugzilla_noreply@novell.com