Commit Graph
10 Commits
Author SHA1 Message Date
Richard GeldreichandClaude Opus 5.5 73b648c704 containers: increase_capacity() returns false before asserting when nofail_flag is set
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>
2026-10-23 18:08:46 -04:00
Mauro Deryckere 10602cdc8e Add missing #include <exception> for std::terminate
container_abort() calls std::terminate() but the file does not include <exception>. This compiles on most toolchains today because other headers transitively pull it in, but fails on Android NDK r28 (Clang 19) with C++23 where the transitive include no longer happens.
Same class of issue as #395 (missing <ctype.h> in this file).
2026-03-19 16:12:44 +01:00
Richard Geldreich e93d3beb36 merging v2.0 from xuastc_private 2026-01-19 01:59:54 -05:00
Aaron Franke f3a63a3f54 Remove trailing space characters 2025-11-21 11:52:38 -08:00
Rémi Verschelde 40288583c7 Add missing ctype.h include for transcoder/basisu_containers_impl.h
The file uses `isdigit` and `isalpha` from `ctype.h`, and recent MSVC seems
to require it explicitly.
2025-05-07 23:16:28 +02:00
Richard Geldreich 1ba75b4e34 ASTC 6x6 HDR/6x6 HDR intermediate update 2025-01-21 11:01:08 -05:00
Richard Geldreich 8318d0c1b8 UASTC HDR merge 2024-09-10 14:38:10 -04:00
Richard Geldreich deeb5acb56 v1.16 release: OpenCL support, removing global selector palette code (it was unused/dead code), ETC1S encoding optimizations, -parallel command line option 2022-01-28 08:32:54 -05:00
Rich Geldreich 2f2965992b Was always including malloc.h - this is now only done on Linux. It was for malloc_usable_size(). 2021-03-10 03:22:15 -05:00
Rich Geldreich bb2a355560 New files 2021-03-09 10:58:49 -05:00