diff options
author | Ryan Lahfa <tvl@lahfa.xyz> | 2024-07-18T19·47+0200 |
---|---|---|
committer | raitobezarius <tvl@lahfa.xyz> | 2024-07-18T22·13+0000 |
commit | f0b0a6572ff7908c890963f6462af27dcef80bd7 (patch) | |
tree | bef600f4c94fd0f999c5934884071b83d32a2377 /tvix/eval/build.rs | |
parent | 168e4fda5909e535f33051051ef426e221ef20d4 (diff) |
fix(tvix/nix-compat): use `buf.filled()` to track read bytes r/8369
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>
Diffstat (limited to 'tvix/eval/build.rs')
0 files changed, 0 insertions, 0 deletions