Page MenuHomeFreeBSD

sbin/ipfw: Fix null pointer deference when printing counters
ClosedPublic

Authored by donner on Apr 30 2021, 2:19 PM.
Tags
None
Referenced Files
F167276815: D30046.id88419.diff
Thu, Aug 20, 2:30 PM
F167276692: D30046.id88419.diff
Thu, Aug 20, 2:28 PM
Unknown Object (File)
Tue, Aug 11, 3:26 PM
Unknown Object (File)
Sun, Aug 9, 12:23 PM
Unknown Object (File)
Sat, Aug 8, 11:13 PM
Unknown Object (File)
Fri, Aug 7, 3:52 PM
Unknown Object (File)
Wed, Aug 5, 5:02 AM
Unknown Object (File)
Wed, Aug 5, 2:59 AM

Details

Summary

ipfw -[tT] prints statistics of the last access. If the rule was never
used, the counter might be not exist. This happens unconditionally on
inserting a new rule. Avoid printing statistics in this case.

PR: 255491
Reported by: Haisheng Zhouz
MFC after: 1 week

Test Plan
# ipfw -t add allow tcp from any to any out

should not segfault.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 38933
Build 35822: arc lint + arc unit