[Bug 217747] sys/dev/mly/mly.c: PVS-Studio: NULL Pointer Dereference (CWE-476) (1)
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217747 John Baldwin changed: What|Removed |Added Status|New |In Progress Flags||mfc-stable10?, ||mfc-stable11? Assignee|freebsd-bugs@FreeBSD.org|j...@freebsd.org -- You are receiving this mail because: You are the assignee for the bug. ___ freebsd-bugs@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"
[Bug 217747] sys/dev/mly/mly.c: PVS-Studio: NULL Pointer Dereference (CWE-476) (1)
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217747 --- Comment #2 from Ed Maste --- Your patch looks good to me. Will you commit it? -- You are receiving this mail because: You are the assignee for the bug. ___ freebsd-bugs@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"
[Bug 217747] sys/dev/mly/mly.c: PVS-Studio: NULL Pointer Dereference (CWE-476) (1)
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217747 --- Comment #1 from John Baldwin --- Created attachment 185158 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=185158&action=edit mly.patch I would probably either move the check of mc_data into the 'if (mc != NULL)' block, or do the approach above where we just return immediately if we fail to get a command and then 'mc' is never NULL when 'out' is jumped to. -- You are receiving this mail because: You are the assignee for the bug. ___ freebsd-bugs@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"
[Bug 217747] sys/dev/mly/mly.c: PVS-Studio: NULL Pointer Dereference (CWE-476) (1)
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217747 Mark Linimon changed: What|Removed |Added Keywords||patch Summary|PVS-Studio: NULL Pointer|sys/dev/mly/mly.c: |Dereference (CWE-476) (1) |PVS-Studio: NULL Pointer ||Dereference (CWE-476) (1) -- You are receiving this mail because: You are the assignee for the bug. ___ freebsd-bugs@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"