HomeFreeBSD

loader: misaligned access of dos_partition structure

Description

loader: misaligned access of dos_partition structure

armv7 crash due to misligned access of dos_partition dp_start field.

Allocate and make copy of dos_partition array to make sure the data
is aligned.

(cherry picked from commit 87d8d5ea3dd0a8ad2c0468660805017d6d45d937)

Details

Provenance
tsoomeAuthored on Mar 19 2020, 5:27 PM
kevansCommitted on Oct 8 2021, 1:15 AM
Parents
rG90603ee8e051: loader: alloc_pread() should set errno if malloc fails
Branches
Unknown
Tags
Unknown