HomeFreeBSD

bspatch: add integer overflow checks

Description

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.

Reviewed by: delphij, allanjude (earlier)
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D7897

Details

Provenance
emasteAuthored on Sep 26 2019, 1:27 PM
Parents
rG11fc80a09824: kernel terminal should initialize fg and bg variables before calling…
Branches
Unknown
Tags
Unknown