diff options
author | edef <edef@edef.eu> | 2024-04-25T23·27+0000 |
---|---|---|
committer | edef <edef@edef.eu> | 2024-04-25T23·47+0000 |
commit | ba46b1818a5065fd84d969bc4bf2e6f7aa98d9c7 (patch) | |
tree | 5b8829ea2b249617309ab34aea93ee44218b23b6 /tvix/eval/src/tests/tvix_tests/eval-okay-builtins-genericClosure-pointer-equality.exp | |
parent | 70c679eac4485d31b1676531a19b170e1661a04d (diff) |
fix(nix-compat/bytes): make BytesReader less hazardous r/8012
We now *never* return the final bytes until we've read the padding in full, so read_exact is safe to use. This is implemented by TrailerReader, which splits the phases of reading (and validating) the final 8-byte block, and providing the contained payload bytes to the caller. Change-Id: I0d05946a8af9c260a18d71d2b763ba7a68b3c27f Reviewed-on: https://cl.tvl.fyi/c/depot/+/11518 Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/eval/src/tests/tvix_tests/eval-okay-builtins-genericClosure-pointer-equality.exp')
0 files changed, 0 insertions, 0 deletions