Page MenuHomeFreeBSD

smbios: Add length sanity checking
ClosedPublic

Authored by imp on Jun 27 2024, 9:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 1, 4:19 AM
Unknown Object (File)
Thu, Oct 24, 8:46 AM
Unknown Object (File)
Tue, Oct 22, 10:17 AM
Unknown Object (File)
Sun, Oct 20, 4:34 AM
Unknown Object (File)
Sep 17 2024, 3:29 PM
Unknown Object (File)
Sep 13 2024, 5:19 AM
Unknown Object (File)
Sep 11 2024, 12:13 PM
Unknown Object (File)
Sep 9 2024, 3:45 AM
Subscribers
None

Details

Summary

D28743 was commited, reverted and then f689cb23b2782 landed before it
was recommitted. However, D28743 included an extra length check. Redo
that functionality so we check both the number of entries as well as the
length checks for wacky data.

Sponsored by: Netflix

Test Plan

I re-wrote this, but if people think it's too close (it did it completely different way, but the nature of C makes it a little similar), I'll add a co-authored-by.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable