mirror of
https://github.com/pbatard/rufus.git
synced 2025-06-04 16:53:54 -04:00
[iso] fix a possible buffer overflow in GetGrubVersion()
* Also increase the size for "probably a flash drive if under" from 32 GB to 128 GB.
This commit is contained in:
parent
ee6c907415
commit
9285313f28
3 changed files with 16 additions and 12 deletions
|
@ -462,7 +462,7 @@ int IsHDD(DWORD DriveIndex, uint16_t vid, uint16_t pid, const char* strid)
|
|||
score_list[score_list_size] = 15;
|
||||
score += score_list[score_list_size++];
|
||||
}
|
||||
} else if (drive_size < 32 * GB) {
|
||||
} else if (drive_size < 128 * GB) {
|
||||
score_list[score_list_size] = -15;
|
||||
score += score_list[score_list_size++];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue