Page MenuHomeFreeBSD

MAC/do: parse_rule_element(): Fix a panic, harden, simplify
ClosedPublic

Authored by olce on Nov 15 2024, 5:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 14, 9:10 AM
Unknown Object (File)
Mon, Apr 7, 1:55 AM
Unknown Object (File)
Thu, Apr 3, 10:12 PM
Unknown Object (File)
Tue, Apr 1, 2:09 PM
Unknown Object (File)
Mar 18 2025, 3:19 PM
Unknown Object (File)
Feb 7 2025, 10:26 AM
Unknown Object (File)
Feb 4 2025, 8:05 PM
Unknown Object (File)
Feb 4 2025, 1:28 AM

Details

Summary

This revision is part of a series. Click on the Stack tab below to see the context.
This series has also been squeezed into D47633 to provide an overall view.

Commit message:
The panic is caused by dereferencing 'element' at a point where it can
be NULL (if string ends at the ':').

Harden and simplify by enforcing the control flow rule in this function
that jumping to the end is reserved for error cases.

Diff Detail

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

Event Timeline

olce requested review of this revision.Nov 15 2024, 5:07 PM
This revision is now accepted and ready to land.Nov 19 2024, 8:02 AM