aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2016-08-23 21:02:20 -0300
committerdequis <dx@dxzone.com.ar>2016-08-23 21:02:20 -0300
commit2dc394c7b0d7dfec1e0a7f553d3510c5efa98086 (patch)
tree764d16f17db56ac17395dfed5df4db069d01c25e /tests
parent88cde4e8a6278c44048c4f454471d3aac724f9b7 (diff)
jabber: handle nulls in jabber_compare_jid
As far as I can see this isn't remotely exploitable (and if it were it would be just DoS of the child process), but i'm still looking into it
Diffstat (limited to 'tests')
-rw-r--r--tests/check_jabber_util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/check_jabber_util.c b/tests/check_jabber_util.c
index 1ffea011..43180fce 100644
--- a/tests/check_jabber_util.c
+++ b/tests/check_jabber_util.c
@@ -102,6 +102,8 @@ static void check_compareJID(int l)
fail_if(jabber_compare_jid("bugtest1@google.com/B", "bugtest2@google.com/A"));
fail_unless(jabber_compare_jid("bugtest@google.com/A", "bugtest@google.com/A"));
fail_if(jabber_compare_jid("", "bugtest@google.com/A"));
+ fail_if(jabber_compare_jid(NULL, ""));
+ fail_if(jabber_compare_jid("", NULL));
}
static void check_hipchat_slug(int l)