mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-24 09:57:08 -06:00
upright_preview decoded a raw file's embedded JPEG with default codec options, discarding the caller's DevelopOptions.limits. A compressed embedded preview could therefore allocate and process far more pixel data than the caller authorized during the fallback and color-fit paths. Pass the caller's limits into upright_preview and translate them into the JPEG DecodeOptions, so both the Unsupported fallback and the preview look-fit respect the same policy. Finding: d17bc286-6765-41ce-bd41-579ee5b75cfa (CWE-409)