about summary refs log tree commit diff
path: root/third_party/cgit/ui-commit.c
diff options
context:
space:
mode:
authorRyan Lahfa <tvl@lahfa.xyz>2024-07-18T19·47+0200
committerraitobezarius <tvl@lahfa.xyz>2024-07-18T22·13+0000
commitf0b0a6572ff7908c890963f6462af27dcef80bd7 (patch)
treebef600f4c94fd0f999c5934884071b83d32a2377 /third_party/cgit/ui-commit.c
parent168e4fda5909e535f33051051ef426e221ef20d4 (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 'third_party/cgit/ui-commit.c')
0 files changed, 0 insertions, 0 deletions