[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 06/25] vvfat: fat_chksum(): fix access above array b
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PATCH 06/25] vvfat: fat_chksum(): fix access above array bounds |
Date: |
Wed, 8 Sep 2010 15:29:23 +0200 |
From: Loïc Minier <address@hidden>
Signed-off-by: Loïc Minier <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
block/vvfat.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/block/vvfat.c b/block/vvfat.c
index 6d61c2e..365332a 100644
--- a/block/vvfat.c
+++ b/block/vvfat.c
@@ -512,7 +512,7 @@ static inline uint8_t fat_chksum(const direntry_t* entry)
for(i=0;i<11;i++) {
unsigned char c;
- c = (i <= 8) ? entry->name[i] : entry->extension[i-8];
+ c = (i < 8) ? entry->name[i] : entry->extension[i-8];
chksum=(((chksum&0xfe)>>1)|((chksum&0x01)?0x80:0)) + c;
}
--
1.7.2.2
- [Qemu-devel] [PULL v2 00/25] Block patches, Kevin Wolf, 2010/09/08
- [Qemu-devel] [PATCH 06/25] vvfat: fat_chksum(): fix access above array bounds,
Kevin Wolf <=
- [Qemu-devel] [PATCH 17/25] scsi: fix and improve debug prints, Kevin Wolf, 2010/09/08
- [Qemu-devel] [PATCH 15/25] scsi-disk: return CHECK CONDITION for unknown page codes in the MODE SENSE command, Kevin Wolf, 2010/09/08
- [Qemu-devel] [PATCH 22/25] raw-posix: improve detection of scsi-generic devices, Kevin Wolf, 2010/09/08
- [Qemu-devel] [PATCH 25/25] qcow2: Remove unnecessary flush after L2 write, Kevin Wolf, 2010/09/08
- [Qemu-devel] [PATCH 14/25] scsi-disk: fix the block descriptor returned by the MODE SENSE command, Kevin Wolf, 2010/09/08
- [Qemu-devel] [PATCH 18/25] qemu-io: Make alloc output useful when nb_sectors=1, Kevin Wolf, 2010/09/08
- [Qemu-devel] [PATCH 02/25] virtio-blk: Fix migration of queued requests, Kevin Wolf, 2010/09/08
- [Qemu-devel] [PATCH 05/25] qemu-img rebase: Open new backing file read-only, Kevin Wolf, 2010/09/08
- [Qemu-devel] [PATCH 24/25] block: Fix BDRV_O_CACHE_MASK, Kevin Wolf, 2010/09/08
- [Qemu-devel] [PATCH 20/25] Improve ATA IDENTIFY word 64 contents., Kevin Wolf, 2010/09/08