[Bug 442924] New: albumshaper-2.1-220.5: 2 * call to wrong C++ delete
https://bugzilla.novell.com/show_bug.cgi?id=442924 Summary: albumshaper-2.1-220.5: 2 * 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 albumshaper-2.1-220.5 and I noticed the following $ fgrep fileIndices ./BUILD/albumshaper-2.1/src/backend/manipulations/mosaic.cpp |egrep "new|delete" int* fileIndices = new int[imageTiles.numInitialized]; int* fileIndicesUsed = new int[files.size()]; delete fileIndices; delete fileIndicesUsed; The last two lines are wrong. Suggest replace with delete [] fileIndices; delete [] fileIndicesUsed; -- 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=442924 Andreas Jaeger <aj@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.provo.novell.com |pnemec@novell.com -- 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=442924 User pnemec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=442924#c1 Pavel Nemec <pnemec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #1 from Pavel Nemec <pnemec@novell.com> 2008-11-10 01:14:04 MST --- Thanks for report and patch. -- 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=442924 User pnemec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=442924#c2 Pavel Nemec <pnemec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #2 from Pavel Nemec <pnemec@novell.com> 2008-11-10 05:01:07 MST --- fixed for factory & upstreamed to Will -- 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.
participants (1)
-
bugzilla_noreply@novell.com