]> git.ipfire.org Git - thirdparty/systemd.git/commit
Use read_full_file_full() in read_smbios11_field()
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 28 Jun 2024 18:12:51 +0000 (20:12 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 1 Jul 2024 16:52:14 +0000 (18:52 +0200)
commit53ee7e0aa163d2ba2eccef3ec8467ac635b8929d
tree5b9a554ea26ed2dbbfafcd14b1352f84ec38b2ef
parent8c399057f461373c60d5f6cc62618423a60429c0
Use read_full_file_full() in read_smbios11_field()

read_virtual_file() will only read up to page size bytes of data
from /sys/firmware/dmi/entries/.../raw so let's use read_full_file_full()
instead to make sure we read all data.

This should be safe since smbios11 data can be considered immutable
during the lifetime of the system.
src/shared/smbios11.c