[Bug 255491] null pointer dereference in ipfw.c
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun May 2 19:47:51 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255491
--- Comment #2 from commit-hook at FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=bf7cc0f9cb6603a6bdd6131c8d1939724ce6e62d
commit bf7cc0f9cb6603a6bdd6131c8d1939724ce6e62d
Author: Lutz Donnerhacke <donner at FreeBSD.org>
AuthorDate: 2021-04-30 14:12:47 +0000
Commit: Lutz Donnerhacke <donner at FreeBSD.org>
CommitDate: 2021-05-02 19:28:46 +0000
sbin/ipfw: Fix null pointer deference when printing counters
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
Reviewed by: ae
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D30046
sbin/ipfw/ipfw2.c | 51 +++++++++++++++++++++++++++------------------------
1 file changed, 27 insertions(+), 24 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-ipfw
mailing list