Mutation of a container during iteration leading to security vulns is not a theoretical problem: https://bugzilla.mozilla.org/show_bug.cgi?id=810718 …
@jruderman @amccreight Not sure what it does, but usually if you want to mutate while iterating you just use an index and bounds check.
-
-
@pcwalton@amccreight That's enough for memory safety, but can do odd things. nsTObserverArray iterator behavior is http://hg.mozilla.org/mozilla-central/file/bf73e10f5e54/xpcom/glue/nsTObserverArray.h#l278 …Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@pcwalton that'll remove out-of-bounds access, but you could still end up with bugs due to under or over-iterating@jruderman@amccreight -
This Tweet is unavailable.
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.