Files
craft-libs/crates
dotCooCoo 0a3dd3dcbf craft-testkit: harden PNG decoding and keep golden verdicts
- decode_png rejects a bad CRC on any ancillary chunk, before or after
  the image data, instead of skipping the chunk.
- decode_png reads the output color type after read_info and checks the
  size after conversion to RGBA, and both sizes against isize::MAX,
  before it allocates the frame buffer. Gray and RGBA frames keep the
  decoder's buffer instead of copying it.
- PNG encoding streams compressed data into the bounded sink, so an
  output over max_input_bytes stops compression early.
- When the failure images of a golden mismatch cannot be encoded or
  written, check_golden returns GoldenMismatchUnsaved with the verdict
  and the error instead of the error alone.
- max_decoded_bytes documents the decoder working-memory budget as best
  effort; the returned pixels stay a hard limit.
- Module docs use code spans for items that do not build for wasm32.
- Comparison tests call check_golden_with with blessing off, and the
  assert_similar! tests run in a child process without the bless
  variable.
2026-11-26 00:40:55 -08:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…