GNOME Bugzilla – Bug 395099
overly agressive rule matching
Last modified: 2007-01-10 21:37:19 UTC
#3 from http://mail.gnome.org/archives/libcroco-list/2006-November/msg00000.html In cr-sel-eng.c, there are several uses of strncmp that look fishy. For example, in id_add_sel_matches_node (cr-sel-eng.c:275), if the XML node has the "id" "foobar", and the selector is "#foo", i.e. a_add_sel->content.id_name->stryng->str = "foo", the rule will match! Untested, proposed patch is included in this email: http://mail.gnome.org/archives/libcroco-list/2007-January/msg00011.html
Created attachment 79977 [details] [review] Bruno's patch
Created attachment 79988 [details] [review] Same patch computed on HEAD It looks ok to me.
Thanks.