]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix invalid VHDX generation for image larger than 4Gb
authorOleksandr Tymoshenko <gonzo@FreeBSD.org>
Mon, 13 Jul 2020 02:24:31 +0000 (02:24 +0000)
committerOleksandr Tymoshenko <gonzo@FreeBSD.org>
Mon, 13 Jul 2020 02:24:31 +0000 (02:24 +0000)
commite3312523403648c2190bfa98363b6391108cc904
tree961752bc3fd517f2c117cb297b75beb7b2f85102
parent551d20f044f3fa5e4f59d6303f1a2a70c1bf2297
Fix invalid VHDX generation for image larger than 4Gb

- Part of BAT payload location was lost due to invalid
    BAT entry encoding type (32 bits instead of 64 bits)
- The sequence of PB/SB entries in BAT was broken due to
    off-by-one index check. It worked for smaller than
    4Gb because there were no SB entries in BAT.

MFC after: 1 day
usr.bin/mkimg/vhdx.c