tvix/nix-compat/nixhash: expose validation for digest lengths

#291
Opened by flokli at 2023-08-19T18·50+00

When parsing derivations (and their fixed outputs), there's codepaths where we currently happily accept digests with wrong lengths, while we do have custom length checks in some paths (when ingesting SRI for example)

We should expose these validation functions somewhere, and make sure they're invoked when parsing a Derivation from JSON, for example.

  1. Fixed in https://cl.tvl.fyi/c/depot/+/9109/2.

    flokli at 2023-08-19T20·42+00

  2. Fixed in https://cl.tvl.fyi/c/depot/+/9109/2.

    flokli at 2023-08-19T20·42+00

  3. flokli closed this issue at 2023-09-21T21·47+00