tvl-depot/tvix/nix-compat/src
Ryan Lahfa f0b0a6572f fix(tvix/nix-compat): use buf.filled() to track read bytes
We were wrongly using `buf.initialized()` which contains more than the
filled portion to compute the number of bytes read during a poll call.

This made us go into the trailer reading state too early and finally
failing due to invalid trailer data.

Fixes b/405.

Co-authored-by: Florian Klink <flokli@flokli.de>
Change-Id: I66ba6e2116389e6b97305f85c4e0922195000e45
Signed-off-by: Ryan Lahfa <tvl@lahfa.xyz>
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11978
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
Reviewed-by: edef <edef@edef.eu>
2024-07-18 22:13:44 +00:00
..
aterm chore(nix-compat/aterm): migrate from test_case to rstest 2024-04-19 19:22:10 +00:00
bin docs(nix-compat/drvfmt): fix reference 2023-12-21 16:39:07 +00:00
derivation chore(3p/sources): bump to OpenSSH vulnerability hotfix 2024-07-01 17:42:30 +00:00
nar fix(tvix/nix-compat): require async and async,wire for some tests 2024-06-03 16:35:51 +00:00
narinfo feat(nix-compat/narinfo/pubkey): derive Clone, [Partial]Eq 2024-06-28 12:23:03 +00:00
nix_daemon chore(nix-compat): Document daemon protocol version 2024-05-02 16:04:13 +00:00
nixcpp feat(nix-compat/nixcpp/conf): make fields pub 2024-06-28 14:04:14 +00:00
nixhash chore(nix-compat/nixhash): migrate from test_case to rstest 2024-04-19 19:22:10 +00:00
store_path fix(nix-compat/store_path): use Box<str> 2024-05-08 08:48:59 +00:00
wire fix(tvix/nix-compat): use buf.filled() to track read bytes 2024-07-18 22:13:44 +00:00
lib.rs feat(nix-compat/nixcpp): init nix.conf config parsing 2024-06-28 12:23:03 +00:00
nixbase32.rs chore(nix-compat/nixbase32): migrate from test_case to rstest 2024-04-19 19:22:10 +00:00
path_info.rs feat(tvix/nix-compat/path_info): derive Hash for ExportedPathInfo 2024-04-13 21:41:47 +00:00