Page MenuHomeFreeBSD

smbios: Add length sanity checking
ClosedPublic

Authored by imp on Jun 27 2024, 9:58 PM.
Tags
None
Referenced Files
F102595036: D45763.diff
Thu, Nov 14, 1:34 PM
Unknown Object (File)
Tue, Nov 5, 3:58 PM
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
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 58381
Build 55269: arc lint + arc unit