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
F125557396: D47612.id146545.diff
Sat, Aug 9, 5:03 AM
F125556448: D47612.diff
Sat, Aug 9, 4:44 AM
Unknown Object (File)
Mon, Jul 28, 7:51 AM
Unknown Object (File)
Tue, Jul 22, 6:03 PM
Unknown Object (File)
Jul 2 2025, 10:53 PM
Unknown Object (File)
Jun 25 2025, 12:40 PM
Unknown Object (File)
Jun 23 2025, 5:54 AM
Unknown Object (File)
Jun 20 2025, 9:44 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