Skip to content

Undetected by tests: hGetBufExactly and hGetBufExactlyAt read too many bytes in the presence of partial reads #99

Open
@jorisdral

Description

@jorisdral

#98 fixes a bug in hGetBufExactly and hGetBufExactlyAt related to partial reads, but this test failure was not caught by our family of propGetterGetsAll tests. We should find out why these tests didn't fail.

cabal run fs-sim-test -- -p "propGetterGetsAll"

The bug was that, in the presence of partial reads, these hGetBuf* functions would try to read more bytes than requested, instead of accounting for the number of bytes we had already read.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions