aboutsummaryrefslogtreecommitdiff
path: root/src/lib/pubsub/pubsub_check.c
AgeCommit message (Collapse)Author
2019-03-28Don't unconditionally deref pub and sub in lint_message_consistencyNick Mathewson
This can't actually result in a null pointer dereference, since pub_excl and sub_excl are only set when the corresponding smartlists are nonempty. But coverity isn't smart enough to figure that out, and we shouldn't really be depending on it. Bug 29938; CID 1444257. Bug not in any released Tor.
2019-03-26Remove message/subsystem numbers from log messagesNick Mathewson
Having the numbers in those messages makes some of the unit test unstable, by causing them to depend on the initialization order of the naming objects.
2019-03-25practracker compliance: split lint_message into more logical partsNick Mathewson
2019-03-25pubsub_check.c: Stop accepting NULL prefix, which we never send.Nick Mathewson
(Our code to handle it was broken, too)
2019-03-25pubsub: relationship checking functionalityNick Mathewson
This code tries to prevent a large number of possible errors by enforcing different restrictions on the messages that different modules publish and subscribe to. Some of these rules are probably too strict, and some too lax: we should feel free to change them as needed as we move forward and learn more.