Page MenuHomeFreeBSD

MAC/do: parse_rule_element(): Bug in parsing the origin ID
ClosedPublic

Authored by olce on Nov 15 2024, 5:07 PM.
Tags
None
Referenced Files
F152171613: D47612.diff
Mon, Apr 13, 5:28 AM
F152146461: D47612.diff
Mon, Apr 13, 1:29 AM
Unknown Object (File)
Sat, Apr 11, 9:31 AM
Unknown Object (File)
Sun, Apr 5, 3:32 PM
Unknown Object (File)
Fri, Apr 3, 11:48 PM
Unknown Object (File)
Thu, Apr 2, 6:28 AM
Unknown Object (File)
Fri, Mar 27, 11:43 PM
Unknown Object (File)
Feb 23 2026, 7:49 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 ID field was allowed to be empty, which would be then parsed as 0 by
strtol(). There remains bugs in this function, where parsing for from-
or to- IDs accepts spaces and produces 0, but this will conveniently be
fixed in a later commit introducing strtoui_strict().

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:05 AM