You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cabal-syntax lexer: out-of-bound array access with the JS backend #8892
Describe the bug
Due to a bug in Alex, Cabal-syntax's lexer performs an out-of-bound array access. For GHC's native backends it's just a data corruption but for the JS backend it leads to a runtime JS exception (out-of-bound array access).
To Reproduce
Build and run some setup program with the JS backend. E.g. test ImpSafeOnly in GHC's testsuite
Expected behavior
Don't crash.
System information
GHC's JS backend in HEAD
Additional context
We could fix by manually patching Lexer.hs
Or wait for a new release of Alex (>= 3.2.7.2) and use it to regenerate Lexer.hs
Activity
Regenerate Lexer.hs with latest Alex (fix haskell#8892)
Regenerate Lexer.hs with latest Alex (fix haskell#8892)
Regenerate Lexer.hs with latest Alex (fix haskell#8892)
Regenerate Lexer.hs with latest Alex (fix haskell#8892)
Regenerate Lexer.hs with latest Alex (fix haskell#8892)
Regenerate Lexer.hs with latest Alex (fix haskell#8892)
Merge pull request #8896 from hsyl20/hsyl20/fix-lexer
Regenerate Lexer.hs with latest Alex (fix #8892)
Merge pull request #8921 from haskell/mergify/bp/3.10/pr-8896