Page MenuHomePhabricator

[LLD][COFF] Reduce the maximum size of the GHASH table

Authored by aganea on Thu, May 27, 6:56 PM.



Before this patch, the maximum size of the GHASH table was 2^31 buckets. However we were storing the bucket index into a TypeIndex which has an input limit of (2^31)-4095 indices, see this link. Any value above that limit will improperly set the TypeIndex's high bit, which is interpreted as DecoratedItemIdMask. This used to cause bad indices on extraction when calling TypeIndex::toArrayIndex().

Diff Detail

Event Timeline

aganea requested review of this revision.Thu, May 27, 6:56 PM
aganea created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptThu, May 27, 6:56 PM
rnk accepted this revision.Thu, May 27, 7:37 PM


This revision is now accepted and ready to land.Thu, May 27, 7:37 PM
This revision was automatically updated to reflect the committed changes.