mirror of
https://github.com/lighttransport/tinyusdz.git
synced 2026-01-18 01:11:17 +01:00
Revert TypedArray usage back to std::vector in crate-reader.cc and usdGeom.cc to fix memory corruption issues that caused crashes when loading certain USDZ files. The TypedArray view mode with mmap was causing uninitialized memory access. Changes: - Replace TypedArray with std::vector in usdGeom.cc flatten_with_indices - Remove TypedArray usage for float2, double2, double3, half2, half4 in crate-reader.cc - Add sanity check for array size to catch corrupted data - Fix missing return statement in material-serializer.cc switch case - Fix typo TUSD_LOG_I -> TUSDZ_LOG_I in crate-reader.cc This fixes crashes when loading fancy-teapot-mtlx.usdz and similar files. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
4 lines
263 B
Plaintext
4 lines
263 B
Plaintext
https://github.com/usd-wg/assets/tree/main/full_assets/Teapot
|
|
|
|
The original Fancy Teapot data was part of the Tea Set created by James Ray Cook, Jurita Burger, and Rico Cilliers at PolyHaven. They generously made it available under a Public Domain - CC0 license.
|