Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Jun 2019 13:11:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 238309] geom/geom_slice.c: potential NULL pointer dereference in g_slice_dumpconf()
Message-ID:  <bug-238309-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 238309
           Summary: geom/geom_slice.c: potential NULL pointer dereference
                    in g_slice_dumpconf()
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: danfe@FreeBSD.org

PVS Studio reports: /usr/src/sys/geom/geom_slice.c:339:1: error: V595 The '=
pp'
pointer was utilized before it was verified against nullptr. Check lines: 3=
39,
342.

>        if (indent =3D=3D NULL) {
>                sbuf_printf(sb, " i %u", pp->index);
>                sbuf_printf(sb, " o %ju",
>                    (uintmax_t)gsp->slices[pp->index].offset);
>                return;
>        }
>        if (pp !=3D NULL) {
>                sbuf_printf(sb, "%s<index>%u</index>\n", indent, pp->index=
);
>                ...

--=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-238309-227>