[Bug 442894] New: blender-2.47-6.9: call to wrong C++ delete
https://bugzilla.novell.com/show_bug.cgi?id=442894 Summary: blender-2.47-6.9: 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 blender-2.47-6.9 and I noticed the following $ fgrep times ../BUILD/blender-2.47/extern/qdune/ribparse/ri.cpp | egrep "new|delete" float* times = new float [n2]; delete times; The last line is wrong. Suggest replace with delete [] times; -- 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=442894
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=442894
User pnemec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=442894#c1
Pavel Nemec
https://bugzilla.novell.com/show_bug.cgi?id=442894
User pnemec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=442894#c2
Pavel Nemec
https://bugzilla.novell.com/show_bug.cgi?id=442894
User dcb314@hotmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=442894#c3
David Binderman
I was too fast. U already updated to 2.48. Qdune is not present there.
Thanks for pointing this out.
If you found a time to go through 2.48 with you compiler it would be nice :)
It's not the compiler, I've written a small Perl script to find these problems. The original problem I mentioned has gone away in 2.48a, but there is this one also $ fgrep gamefile ./BUILD/blender-2.48a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp | egrep "new|delete" gamefile = new char [len + 1]; delete gamefile; Same problem in a different place. I'd be a happy man if you could fix this one, please. -- 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=442894
User pnemec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=442894#c4
Pavel Nemec
https://bugzilla.novell.com/show_bug.cgi?id=442894
User pnemec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=442894#c5
Pavel Nemec
participants (1)
-
bugzilla_noreply@novell.com