[Bug 523354] New: aranym-0.9.7beta-1.55: possible bad C++ STL iterator
http://bugzilla.novell.com/show_bug.cgi?id=523354 Summary: aranym-0.9.7beta-1.55: possible bad C++ STL iterator Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: All OS/Version: openSUSE 11.1 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 had a look at factory package aranym-0.9.7beta-1.55 For source code file aranym-0.9.7beta/src/natfeat/hostfs.cpp, around line 2565 is the following source code for(MountMap::iterator it = mounts.begin(); it != mounts.end(); it++) { delete it->second; mounts.erase(it); } The call to erase invalidates the iterator it. Suggest code rework. Maybe the following code might work for(MountMap::iterator it = mounts.begin(); it != mounts.end(); ) { delete it->second; it = mounts.erase(it); } -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=523354 shuang qiu <sqiu@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sqiu@novell.com AssignedTo|bnc-team-screening@forge.pr |schwab@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=523354 shuang qiu <sqiu@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |stefan.fent@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=523354 User rguenther@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=523354#c2 --- Comment #2 from Richard Guenther <rguenther@novell.com> 2009-10-17 08:54:31 MDT --- David, in case the issues are not introduced by a patch local to openSUSE please report the issues upstream. Packagers, please do not add openSUSE-local patches to fix this kind of errors but forward the bugs upstream and close the bugs as RESOLVED UPSTREAM. Note that it is perfectly fine to have "resource leaks" at the end of a program as the kernel will clean up for you. Manually freeing them only increases binary size and runtime. -- Configure bugmail: http://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=523354 https://bugzilla.novell.com/show_bug.cgi?id=523354#c3 Stefan Fent <stefan.fent@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Stefan Fent <stefan.fent@suse.com> 2013-11-25 16:03:10 UTC --- fixed in current version -- 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