Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Apr 2021 16:44:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 255491] null pointer dereference in ipfw.c
Message-ID:  <bug-255491-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255491

            Bug ID: 255491
           Summary: null pointer dereference in ipfw.c
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: haisheng.zhouz@hotmail.com

Created attachment 224536
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D224536&action=
=3Dedit
screenshots of  Bug analysis

when i use the command #ipfw -t add allow tcp from any to any out
there is a "Segmentation fault(core dumped)"

In this commad  "ipfw" and "-t"or"-T" and  "add" is needed.

It is because  lin 5362 of ipfw2.c=20=20
  show_static_rule(&g_co, &sfo, &bp, rule, NULL); the last parameter is NULL

and then  line 2195 in ipfw2.c

  if (cntr->timestamp > 0) {   //the "cntr" is NULL

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-255491-227>