Mathias Agopian
16a7047372
Strict bounds validation and parsing optimizations in Ktx1Bundle (#9858)
- Upgraded deserialization precondition checks to fail-fast
postconditions.
- Added strict OOB bounds tracking for metadata strings and dynamic
payload padding to prevent arbitrary memory corruption
vulnerabilities.
- Mitigated heap buffer overflows by adding integer boundary constraints
and dry-running contiguous sizes prior to container allocation.
- Flattened nested layer/face loops via `std::fill_n` and contiguous
`memcpy` operations to streamline serialization overhead.
- Updated header documentation explicitly detailing assert
circumstances on affected public methods.