Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174396775
D36709.id114347.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
498 B
Referenced Files
None
Subscribers
None
D36709.id114347.diff
View Options
diff --git a/sys/geom/part/g_part_gpt.c b/sys/geom/part/g_part_gpt.c
--- a/sys/geom/part/g_part_gpt.c
+++ b/sys/geom/part/g_part_gpt.c
@@ -515,7 +515,8 @@
hdr->hdr_lba_table <= hdr->hdr_lba_end)
goto fail;
lba = hdr->hdr_lba_table +
- howmany(hdr->hdr_entries * hdr->hdr_entsz, pp->sectorsize) - 1;
+ howmany((uint64_t)hdr->hdr_entries * hdr->hdr_entsz,
+ pp->sectorsize) - 1;
if (lba >= last)
goto fail;
if (lba >= hdr->hdr_lba_start && lba <= hdr->hdr_lba_end)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 3, 9:59 PM (11 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40156392
Default Alt Text
D36709.id114347.diff (498 B)
Attached To
Mode
D36709: geom_part: Fix potential integer overflow when checking size of the table
Attached
Detach File
Event Timeline
Log In to Comment