]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Avoid a buffer overwrite in rip6_output() when computing the checksum
authortuexen <tuexen@FreeBSD.org>
Fri, 19 Apr 2019 17:21:35 +0000 (17:21 +0000)
committertuexen <tuexen@FreeBSD.org>
Fri, 19 Apr 2019 17:21:35 +0000 (17:21 +0000)
commitac889cf71b0dbdd9af16695f5ec3d0ab05ed0e98
tree67203d16fcb234f971652b69d7b5d4c19efce432
parent3e538ee797c6065d463b152f70c7f5680c4e291d
Avoid a buffer overwrite in rip6_output() when computing the checksum
as requested by the user via the IPPROTO_IPV6 level socket option
IPV6_CHECKSUM. The check if there are enough bytes in the packet to
store the checksum at the requested offset was wrong by 1.

Reviewed by: bz@
MFC after: 1 week
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D19967
sys/netinet6/raw_ip6.c