]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader: misaligned access of dos_partition structure
authorToomas Soome <tsoome@FreeBSD.org>
Thu, 19 Mar 2020 17:27:08 +0000 (17:27 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Fri, 8 Oct 2021 01:15:59 +0000 (20:15 -0500)
commit51ddd2851e4a36e28cf78dfe06125723f7d2b113
treebe351d4c2ebd959a9328bb1279d765d5777eedd8
parent90603ee8e051807c5469e51b547d9dc856d9b6c8
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)
stand/common/part.c