summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYouness Alaoui <youness.alaoui@collabora.co.uk>2011-03-24 00:16:15 (GMT)
committerYouness Alaoui <youness.alaoui@collabora.co.uk>2011-03-24 02:08:36 (GMT)
commitcb8c08865e504d89c7e51ad93ac34624c138af2f (patch)
tree51a67371285366eb566ad70d5b0eb789f2d09414
parent88f9cb42c8ba04ee32ca2a69a83596df40b13d50 (diff)
downloadlibnice-cb8c08865e504d89c7e51ad93ac34624c138af2f.tar.gz
libnice-cb8c08865e504d89c7e51ad93ac34624c138af2f.tar.xz
Avoid a possible coverity false positive
-rw-r--r--stun/usages/ice.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stun/usages/ice.c b/stun/usages/ice.c
index 7cc1781..5506cf4 100644
--- a/stun/usages/ice.c
+++ b/stun/usages/ice.c
@@ -109,6 +109,8 @@ stun_usage_ice_conncheck_create (StunAgent *agent, StunMessage *msg,
if (modulo4)
attribute_len += 4 - modulo4;
+ // Avoid a coverify false positive
+ assert (attribute_len >= identifier_len);
buf = malloc(attribute_len);
memset(buf, 0, attribute_len);
memcpy(buf, candidate_identifier, identifier_len);