summaryrefslogtreecommitdiffstats
path: root/src/md.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-04-27 08:21:28 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2010-04-27 08:21:28 +0200
commit858b38cefc9c1a99d20f5ef0445b6d687094e460 (patch)
tree7b97b45726f93769fae791cce14534f10ff245f3 /src/md.c
parent9ce850a9216800f685937a50034794a179f3a6cc (diff)
md 0.9: fix out of bound write memory operation
Diffstat (limited to 'src/md.c')
-rw-r--r--src/md.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/md.c b/src/md.c
index 99812a9..1ad91e4 100644
--- a/src/md.c
+++ b/src/md.c
@@ -208,7 +208,7 @@ int recover_MD(disk_t *disk_car, const struct mdp_superblock_s *sb, partition_t
{
partition->part_size=(uint64_t)(le32(sb->size)<<1)*disk_car->sector_size+MD_RESERVED_BYTES;
memcpy(&partition->part_uuid, &sb->set_uuid0, 4);
- memcpy(&partition->part_uuid+4, &sb->set_uuid1, 3*4);
+ memcpy((char*)(&partition->part_uuid)+4, &sb->set_uuid1, 3*4);
}
else
{