haskell-nix / hnix-store

Haskell implementation of the Nix store
Apache License 2.0
87 stars 23 forks source link

Fix NAR parsing failure when not enough input is available #226

Closed sandydoo closed 11 months ago

sandydoo commented 11 months ago

Replaces hGetSome with hGet, which should continue reading until the requested number of bytes have been read in. This avoids a potential failure mode where the requested bytes are not immediately available/buffered.

Resolves #225.

sorki commented 11 months ago

Thank you!