Skip to content

Data.Array.IO.hPutArray/hGetArray ignore count argument

The ghc versions of hGetArray and hPutArray in Data.Array.IO in the array library ignore their count arguments, and read or write the full array regardless. This was observed as a bug where extraneous garbage data was written to the end of a file. The non-ghc versions (appear) correct.

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