]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: unaligned access in efi_file_from_path()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 14 Jul 2019 18:14:46 +0000 (20:14 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 16 Jul 2019 22:17:23 +0000 (22:17 +0000)
commitf62be16ddb76a32e6315bb9517b49e639726e1fa
tree71fa1ead34e7e063325940c2190a956edf36127c
parent046fe7b50741363bd2df47cd01b35c0228b165bf
efi_loader: unaligned access in efi_file_from_path()

The device path structure is packed. So no assumption on the alignment is
possible. Copy the file name in efi_file_from_path() to assure there is no
unaligned access.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_file.c