After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 650688 - enforce rules about hash table modification
enforce rules about hash table modification
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2011-05-20 18:35 UTC by Matthias Clasen
Modified: 2011-05-21 02:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (2.98 KB, patch)
2011-05-20 18:35 UTC, Matthias Clasen
none Details | Review

Description Matthias Clasen 2011-05-20 18:35:19 UTC
Created attachment 188235 [details] [review]
patch

g_hash_table_find, g_hash_table_foreach and various other functions take callbacks that are documented as 'must not modify the hash table'. But we are not currently checking this. But when we added iters, we did add the infrastructure to do so, as the following patch shows.