GNOME Bugzilla – Bug 745745
gdbus: fix out-of-bound array access
Last modified: 2017-10-26 10:36:44 UTC
In path_rule_matches(), the given paths may be of 0-length. Do not access memory before the array in those case. This is for example triggered by: test_match_rule (con, G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_PATH, "/", "", FALSE); in test_connection_signal_match_rules().
Created attachment 298713 [details] [review] gdbus: fix out-of-bound array access
No takers? I should credit that I found this bug with GCC ASAN.
Review of attachment 298713 [details] [review]: Looks good to me
Attachment 298713 [details] pushed as 41acf97 - gdbus: fix out-of-bound array access
*** Bug 711804 has been marked as a duplicate of this bug. ***