diff options
author | edef <edef@edef.eu> | 2023-10-10T08·55+0000 |
---|---|---|
committer | edef <edef@edef.eu> | 2023-10-10T20·33+0000 |
commit | baae5ce473ed83f35f343656eedb14bb60fbecc7 (patch) | |
tree | feb795137ca56d4877389c4f54078615308df64b /RULES | |
parent | e2dba089c46ae71798d0286f31b207a6b3b66b56 (diff) |
fix(tvix/castore): handle Directory::size overflow explicitly r/6777
We use checked arithmetic for computing the total size, and verify that size is in-bounds in Directory::validate. If an out-of-bounds size makes it to the "unchecked" size method, we either panic (in debug mode), or silently saturate to u32::MAX. No new panic sites are added, since overflows in debug mode already panic at the language level. Change-Id: I95b8c066a42614fa447f08b4f8fe74e16fbe8bf9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9616 Reviewed-by: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
Diffstat (limited to 'RULES')
0 files changed, 0 insertions, 0 deletions