Commit cb8c0886 authored by Youness Alaoui's avatar Youness Alaoui

Avoid a possible coverity false positive

parent 88f9cb42
...@@ -109,6 +109,8 @@ stun_usage_ice_conncheck_create (StunAgent *agent, StunMessage *msg, ...@@ -109,6 +109,8 @@ stun_usage_ice_conncheck_create (StunAgent *agent, StunMessage *msg,
if (modulo4) if (modulo4)
attribute_len += 4 - modulo4; attribute_len += 4 - modulo4;
// Avoid a coverify false positive
assert (attribute_len >= identifier_len);
buf = malloc(attribute_len); buf = malloc(attribute_len);
memset(buf, 0, attribute_len); memset(buf, 0, attribute_len);
memcpy(buf, candidate_identifier, identifier_len); memcpy(buf, candidate_identifier, identifier_len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment