Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133174306
D36709.id.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.id.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
Fri, Oct 24, 4:26 PM (20 h, 16 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24134948
Default Alt Text
D36709.id.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