HomeFreeBSD

Fix NULL pointer dereference in zdb

Description

Fix NULL pointer dereference in zdb

Clang's static analyzer complained that we dereference a NULL pointer in
dump_path() if we return 0 when there is an error.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14044

Details

Provenance
Richard Yao <richard.yao@alumni.stonybrook.edu>Authored on Oct 15 2022, 2:45 AM
Tony Hutter <hutter2@llnl.gov>Committed on Dec 1 2022, 8:39 PM
Parents
rG4351d18fb0bf: ZED: Fix uninitialized value reads
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rG5eaad8bdb5cf: Fix NULL pointer dereference in zdb (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Dec 1 2022, 8:39 PM