]> xenbits.xensource.com Git - seabios.git/commit
fix smbios blob length overflow
authorIgor Mammedov <imammedo@redhat.com>
Fri, 23 Feb 2024 15:05:22 +0000 (16:05 +0100)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 3 Mar 2024 17:40:12 +0000 (12:40 -0500)
commit163fd9f0872f95366cfe34eb11568934c2d2fe29
tree907caa26e431e131195ab3b0fa9c979927072e01
parent82faf1d5c8b25375b9029f2d6668135e62455a8c
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>
src/fw/biostables.c