[Xen-devel] [PATCH 04/32] block-vvfat: fix fat_chksum() buffer overrun warning

2015-04-22 Thread Andrew Cooper
Newer GCC versions raise an undefined behaviour warning in fat_chksum() because it overruns the name buffer. However, this is intentional behaviour because the extension array immediately follows. Refactor this function to avoid the warning and make it clear it's checksumming both parts.

[Xen-devel] [PATCH 04/32] block-vvfat: fix fat_chksum() buffer overrun warning

2015-04-22 Thread Andrew Cooper
Newer GCC versions raise an undefined behaviour warning in fat_chksum() because it overruns the name buffer. However, this is intentional behaviour because the extension array immediately follows. Refactor this function to avoid the warning and make it clear it's checksumming both parts.