HomeFreeBSD

MFC r352742: bspatch: add integer overflow checks

Description

MFC r352742: bspatch: add integer overflow checks

Introduce a new add_off_t static function that exits with an error
message if there's an overflow, otherwise returns their sum. Use this
when adding values obtained from the input patch.

Sponsored by: The FreeBSD Foundation

Details

Provenance
emasteAuthored on
Parents
rS353043: MFC r352742: bspatch: add integer overflow checks
Branches
Unknown
Tags
Unknown