mirror of
https://github.com/BinomialLLC/basis_universal.git
synced 2026-10-29 12:15:33 +00:00
try_resize()/try_reserve() etc. (nofail) are used to fail cleanly on huge allocations, e.g. the Wuffs LDR loader's pixel and work buffers for a small crafted file whose header claims a big image. In Debug the assert(0) fired before the nofail check, so such a file aborted Debug builds instead of failing the load. Callers without nofail are unchanged (assert, then abort). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>