HomeFreeBSD

Fix use-after-free in btree code

Description

Fix use-after-free in btree code

Coverty static analysis found these.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Neal Gompa <ngompa@datto.com>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #10989
Closes #13861

Approved by: so
Security: FreeBSD-EN-22:21.zfs

(cherry picked from commit 8131a96544fd19411c23424af85140e91e41c001)

Details

Provenance
Richard Yao <richard.yao@alumni.stonybrook.edu>Authored on Sep 12 2022, 6:22 PM
markjCommitted on Nov 1 2022, 6:03 PM
Parents
rG1ee7e4ba70e1: loader: fix elf lookup_symbol type filtering
Branches
Unknown
Tags
Unknown