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
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D28570

Details

Provenance
arichardsonAuthored on Feb 10 2021, 3:23 PM
Reviewer
emaste
Differential Revision
D28570: usr.sbin/makefs: fix use-after-free in read_mtree_keywords()
Parents
rGf44e67d120ad: MFV d60fa10fd872db7e3d8cb1e161cfdae026c43b14:
Branches
Unknown
Tags
Unknown