[Bug 1500142] [NEW] Invalid read of size 8 in fat_resize()
Quiet Dragon
1500142 at bugs.launchpad.net
Sun Sep 27 05:56:33 UTC 2015
Public bug reported:
--- ./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;
** Affects: parted (Ubuntu)
Importance: Undecided
Status: New
--
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