diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2017-12-04 16:52:17 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2017-12-04 16:52:17 +0000 |
commit | 3c315e40bef991d8ba14b12fee4f17d260cc5b1a (patch) | |
tree | 3315cf039024c3ff95aee0cf77fc0f47233d0063 /sys/kern/sys_process.c | |
parent | 589c344b1584548f2648f374d910240bd1f5b420 (diff) |
The payloads are layered like onions, so you can validate one layer and
then call the next one, which can then validate itself. Thing is, most
layers try to run validations on the upper layer, which is not useful
and rather confusing. This cleans it up.
First change is that the generic payload parser does not anymore pass
the length of the whole datagram, including all remaining payloads, but
passes only the length of the specific payload to the specific payload
parser. Second change is that the payload validators don't check the
length of the upper layer, but only verify their own lengths.
Diff discussed with hshoexer@ and sthen@
Tested by sthen@
Diffstat (limited to 'sys/kern/sys_process.c')
0 files changed, 0 insertions, 0 deletions