Closed mrc0mmand closed 2 years ago
Another bunch with slightly different messages, but the same cause:
Looking up NSS user entry for 'rtkit'...
NSS returned NAME 'rtkit' and UID '172'
Looking up NSS user entry for '21'...
NSS returned no entry for '21'
Invalid user-name in /home/mrc0mmand/repos/dbus-broker/afl.out/default/crashes/id:000003,sig:06,src:000124,time:1343550,op:havoc,rep:2 +10: user="21"
Invalid XML in /home/mrc0mmand/repos/dbus-broker/afl.out/default/crashes/id:000003,sig:06,src:000124,time:1343550,op:havoc,rep:2 +11: mismatched tag
test-config: ../src/launch/nss-cache.c:90: void nss_cache_deinit(NSSCache *): Assertion `c_assert_result && "c_rbtree_is_empty(&cache->uid_tree)"' failed.
Aborted (core dumped)
I fixed the XML-blob parser some weeks ago. This might be the root of the issues you mentioned here. Regardless, I now pushed changes to test-config.c
to include your samples and try to parse them. For now, the parser does not trip over, so I assume it is fixed. Let me know if there is more I can do!
Thanks a lot for digging into this! Very much appreciated!
After playing around with dbus-broker & AFL, I stumbled across a couple of unexpected segfaults:
Config files:
Config file: test-config-segfault1.txt
All of them seem to share the common cause: