[Bug 238309] geom/geom_slice.c: potential NULL pointer dereference in g_slice_dumpconf()
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Jun 3 13:11:50 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238309
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 at FreeBSD.org
Reporter: danfe at 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: 339,
342.
> if (indent == NULL) {
> sbuf_printf(sb, " i %u", pp->index);
> sbuf_printf(sb, " o %ju",
> (uintmax_t)gsp->slices[pp->index].offset);
> return;
> }
> if (pp != NULL) {
> sbuf_printf(sb, "%s<index>%u</index>\n", indent, pp->index);
> ...
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list