Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177708668
D36709.1795096764.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
498 B
Referenced Files
None
Subscribers
None
D36709.1795096764.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
Thu, Nov 19, 1:59 PM (9 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41823105
Default Alt Text
D36709.1795096764.diff (498 B)
Attached To
Mode
D36709: geom_part: Fix potential integer overflow when checking size of the table
Attached
Detach File
Event Timeline