Skip to content

Off-by-one error in FastString.getFastStringTable

There is an off-by-one-error in FastString.getFastStringTable that causes GHC to segfault when passed the -dfaststring-stats flag due to accessing contents past the end of an array.

The fix is simple: replace hASH_TBL_SIZE with hASH_TBL_SIZE-1 in the offending function.

Trac metadata
Trac field Value
Version 7.6.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information