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
F108541170: D47605.id148057.diff
Sun, Jan 26, 2:55 AM
Unknown Object (File)
Fri, Jan 10, 2:55 AM
Unknown Object (File)
Sun, Jan 5, 9:45 AM
Unknown Object (File)
Fri, Dec 27, 12:44 PM
Unknown Object (File)
Fri, Dec 27, 11:44 AM
Unknown Object (File)
Fri, Dec 27, 11:32 AM
Unknown Object (File)
Dec 8 2024, 7:26 PM
Unknown Object (File)
Dec 6 2024, 8:08 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