[Bug 517549] New: scim-skk-0.5.2-291.1: bad call to C++STL erase
http://bugzilla.novell.com/show_bug.cgi?id=517549 Summary: scim-skk-0.5.2-291.1: bad call to C++STL erase 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 scim-skk-0.5.2-291.1 For source code file scim-skk-0.5.2/src/scim_skk_dictionary.cpp around line 548 is the source code for (list<CandPair>::iterator it = cl.begin(); it != cl.end(); it++) { if (it->first == data.first) { cl.erase(it); } } My understanding is that any call to erase will invalidate any associated iterator. Suggest new code for (list<CandPair>::iterator it = cl.begin(); it != cl.end(); ){ if (it->first == data.first) { it = cl.erase(it); } else { ++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=517549 shuang qiu <sqiu@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sqiu@novell.com AssignedTo|bnc-team-screening@forge.pr |mfabian@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=517549 shuang qiu <sqiu@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |tiwai@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=517549 User tiwai@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=517549#c2 Takashi Iwai <tiwai@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|tiwai@novell.com |bnc-team-screening@forge.pr | |ovo.novell.com --- Comment #2 from Takashi Iwai <tiwai@novell.com> 2009-08-03 01:33:30 MDT --- We have no i18n maintainer right now... -- 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=517549 User tiwai@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=517549#c3 Takashi Iwai <tiwai@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |tiwai@novell.com Resolution| |FIXED --- Comment #3 from Takashi Iwai <tiwai@novell.com> 2009-08-04 09:01:20 MDT --- OK, the problem looks trivial to fix. Now fixed in M17N repo. -- 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.
participants (1)
-
bugzilla_noreply@novell.com