mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-06-02 07:59:54 -04:00
1.0.07 release
This commit is contained in:
parent
d551fc2e3c
commit
d5b829f8e8
52 changed files with 1770 additions and 154 deletions
|
@ -558,7 +558,7 @@ grub_fat_read_data (grub_disk_t disk, grub_fshelp_node_t node,
|
|||
if (next_cluster >= node->data->cluster_eof_mark)
|
||||
return ret;
|
||||
|
||||
if (next_cluster < 2 || next_cluster >= node->data->num_clusters)
|
||||
if (next_cluster < 2 || (next_cluster - 2) >= node->data->num_clusters)
|
||||
{
|
||||
grub_error (GRUB_ERR_BAD_FS, "invalid cluster %u",
|
||||
next_cluster);
|
||||
|
@ -1409,7 +1409,7 @@ int grub_fat_get_file_chunk(grub_uint64_t part_start, grub_file_t file, ventoy_i
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (next_cluster < 2 || next_cluster >= node->data->num_clusters)
|
||||
if (next_cluster < 2 || (next_cluster - 2) >= node->data->num_clusters)
|
||||
{
|
||||
grub_error (GRUB_ERR_BAD_FS, "invalid cluster %u", next_cluster);
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue