[Webkit-unassigned] [Bug 41237] HashSet iterators are quasi-mutable.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jun 26 09:29:31 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=41237


Darin Adler <darin at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |darin at apple.com




--- Comment #2 from Darin Adler <darin at apple.com>  2010-06-26 09:29:31 PST ---
It’s definitely a programming mistake to change the value of an item in a set. I think the comments in this bug so far understate the severity of what happens in that case. Changing the value of one of the elements in the set can break the hash table invariants and make it so that items will seem to disappear from the set or worse.

So it’s good to make this an error at compile time if you can do it without causing other problems.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list