Page MenuHomeFreeBSD

smbios: Add length sanity checking
ClosedPublic

Authored by imp on Jun 27 2024, 9:58 PM.
Tags
None
Referenced Files
F93665581: D45763.id140321.diff
Wed, Sep 11, 12:13 PM
Unknown Object (File)
Mon, Sep 9, 3:45 AM
Unknown Object (File)
Sun, Sep 8, 1:46 PM
Unknown Object (File)
Sat, Sep 7, 6:37 PM
Unknown Object (File)
Thu, Aug 22, 3:32 AM
Unknown Object (File)
Thu, Aug 22, 3:32 AM
Unknown Object (File)
Thu, Aug 22, 3:31 AM
Unknown Object (File)
Aug 11 2024, 2:22 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