diff options
author | Igor Mammedov <imammedo@redhat.com> | 2024-02-23 16:05:22 +0100 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2024-03-03 12:40:12 -0500 |
commit | 163fd9f0872f95366cfe34eb11568934c2d2fe29 (patch) | |
tree | 907caa26e431e131195ab3b0fa9c979927072e01 /vgasrc/vbe.c | |
parent | 82faf1d5c8b25375b9029f2d6668135e62455a8c (diff) | |
download | seabios-163fd9f0872f95366cfe34eb11568934c2d2fe29.tar.gz |
fix smbios blob length overflow
When tables are more than 64K, size of copied tables will be
truncated due to cast from u32 to u16, and as result only
a small portion of the tables will be copied in the end.
That leads to corrupted tables (a part from QEMU and
remainder is whatever was in memory block allocated for
the tables).
Fix it by making qtables_len 32bit int.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Diffstat (limited to 'vgasrc/vbe.c')
0 files changed, 0 insertions, 0 deletions