Page MenuHomeFreeBSD

Don't overwrite buffer when computing checksum via IPV6_CHECKSUM
ClosedPublic

Authored by tuexen on Apr 19 2019, 4:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 28, 3:00 PM
Unknown Object (File)
Dec 20 2023, 5:38 PM
Unknown Object (File)
Dec 20 2023, 3:07 AM
Unknown Object (File)
Nov 15 2023, 8:25 AM
Unknown Object (File)
Sep 2 2023, 7:18 AM
Unknown Object (File)
Aug 31 2023, 10:32 AM
Unknown Object (File)
Aug 4 2023, 8:29 PM
Unknown Object (File)
Jul 12 2023, 8:27 PM
Subscribers

Details

Summary

When computing the checksum for a packet to be sent, ensure you have enough bytes in the packet to write the checksum. The existing check was wrong (off by one error) and would result in writing one byte after the packet buffer.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Can you please improve the description before committing stating that it's related to rip6_output().

This revision is now accepted and ready to land.Apr 19 2019, 4:58 PM
This revision was automatically updated to reflect the committed changes.
In D19967#429234, @bz wrote:

Can you please improve the description before committing stating that it's related to rip6_output().

Done.