diff options
author | Ed Maste <emaste@FreeBSD.org> | 2016-09-06 19:00:37 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2016-09-06 19:00:37 +0000 |
commit | e3d9ae4c56e15404846e4cb3360394a0a36cec23 (patch) | |
tree | ce3b0a5b25fe085d1c0b93635b4ca2663702b360 /sys/conf | |
parent | 5fb03c3780809f666f89a9e6bbca2f7b8fb513f3 (diff) | |
download | src-e3d9ae4c56e15404846e4cb3360394a0a36cec23.tar.gz src-e3d9ae4c56e15404846e4cb3360394a0a36cec23.zip |
bspatch: add sanity checks on sizes to avoid integer overflow
Note that this introduces an explicit 2GB limit, but this was already
implicit in variable and function argument types.
This is based on the "non-cryptanalytic attacks against freebsd
update components" anonymous gist. Further refinement is planned.
Reviewed by: allanjude, cem, kib
Obtained from: anonymous gist
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D7619
Notes
Notes:
svn path=/head/; revision=305486
Diffstat (limited to 'sys/conf')
0 files changed, 0 insertions, 0 deletions