]> xenbits.xensource.com Git - seabios.git/commit
vgasrc: round up save/restore size
authorDaniel Verkamp <daniel@drv.nu>
Tue, 12 Mar 2024 00:56:40 +0000 (17:56 -0700)
committerKevin O'Connor <kevin@koconnor.net>
Tue, 12 Mar 2024 14:27:40 +0000 (10:27 -0400)
commit3722c21de19ba64de56495502c0c025b913a9b15
treeff22edad57ae0fb1546dcd535e07338f6aa9cde1
parent5d87ff2542c1116e07ae74ba84197a0013e08db1
vgasrc: round up save/restore size

When calculating the size of the buffer required for the VGA/VBE state,
round up rather than truncating when dividing the number of bytes to get
the number of 64-byte blocks. Without this modification, the save state
function will write past the end of a buffer of the size requested.

Signed-off-by: Daniel Verkamp <daniel@drv.nu>
vgasrc/vbe.c
vgasrc/vgabios.c