[Bug 1500142] Re: Invalid read of size 8 in fat_resize()
Phillip Susi
psusi at ubuntu.com
Tue Sep 29 13:17:02 UTC 2015
A little description to go along with the patch would be good ;)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to parted in Ubuntu.
https://bugs.launchpad.net/bugs/1500142
Title:
Invalid read of size 8 in fat_resize()
Status in parted package in Ubuntu:
New
Bug description:
--- ./libparted/fs/fat/resize.c 2015-09-26 22:51:57.000000000 -0700
+++ ../../libparted/parted-2.3/libparted/fs/fat/resize.c 2015-09-26 22:34:31.527662469 -0700
@@ -667,10 +667,8 @@
goto error_free_new_fs;
/* preserve boot code, etc. */
- memcpy (&new_fs_info->boot_sector, &fs_info->boot_sector,
- sizeof (FatBootSector));
- memcpy (&new_fs_info->info_sector, &fs_info->info_sector,
- sizeof (FatInfoSector));
+ new_fs_info->boot_sector = fs_info->boot_sector;
+ new_fs_info->info_sector = fs_info->info_sector;
new_fs_info->logical_sector_size = fs_info->logical_sector_size;
new_fs_info->sector_count = new_geom->length;
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/parted/+bug/1500142/+subscriptions
More information about the foundations-bugs
mailing list