HomeFreeBSD

usr.sbin/makefs: fix use-after-free in read_mtree_keywords()

Description

usr.sbin/makefs: fix use-after-free in read_mtree_keywords()

The st variable is used as a shortcut for &node->inode->st, but in one
branch just before the exit we update node->inode without changing st.

Reported by: AddressSanitizer
Reviewed By: emaste

(cherry picked from commit 12ad8bdb34aa990bcc4f3faa92a6e0557385d2b2)

Details

Provenance
arichardsonAuthored on Feb 10 2021, 3:23 PM
Parents
rG7973db046cb0: OpenSSL: Regen assembly files for OpenSSL 1.1.1j
Branches
Unknown
Tags
Unknown