Skip to content

Commit

Permalink
hep: fix buffer overflow when using IPv6
Browse files Browse the repository at this point in the history
Fixes Coverity CID 58399
  • Loading branch information
razvancrainea committed Oct 24, 2016
1 parent 927fc92 commit 87e6d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/proto_hep/hep.c
Expand Up @@ -280,7 +280,7 @@ static int pack_hepv3(union sockaddr_union* from_su, union sockaddr_union* to_su
/* IPv6 */
else if(from_su->s.sa_family == AF_INET6) {
/* SRC IPv6 */
memcpy((void*) buffer+buflen, &src_ip4, sizeof(struct hep_chunk_ip6));
memcpy((void*) buffer+buflen, &src_ip6, sizeof(struct hep_chunk_ip6));
buflen += sizeof(struct hep_chunk_ip6);

memcpy((void*) buffer+buflen, &dst_ip6, sizeof(struct hep_chunk_ip6));
Expand Down

0 comments on commit 87e6d18

Please sign in to comment.