Page MenuHomeFreeBSD

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

Authored by olce on Fri, Nov 15, 5:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 7:05 PM
Unknown Object (File)
Sat, Nov 23, 3:06 PM
Unknown Object (File)
Thu, Nov 21, 4:52 PM
Unknown Object (File)
Thu, Nov 21, 3:18 AM
Unknown Object (File)
Mon, Nov 18, 11:01 AM
Unknown Object (File)
Mon, Nov 18, 10:03 AM
Unknown Object (File)
Mon, Nov 18, 8:50 AM
Unknown Object (File)
Mon, Nov 18, 8:10 AM

Details

Reviewers
bapt
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 60596
Build 57480: arc lint + arc unit