41 Commits

Author SHA1 Message Date
Syoyo Fujita
744f6fcc8f Fix undefined behavior in parse_int and add UBSan build script
Fix signed integer overflow when parsing INT_MIN (-2147483648) by
negating in int64_t space before casting to int32_t. The previous
code attempted to negate the result after casting, which is undefined
behavior for INT_MIN.

Also add bootstrap-cmake-linux-ubsan.sh for UBSan builds.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 07:50:28 +09:00
Syoyo Fujita
160aab95fb Update ARM64 CI to Ubuntu 24.04 and fix bootstrap script defaults
- Update ARM64 runners from ubuntu-22.04-arm to ubuntu-24.04-arm
- Update LLVM apt repository from jammy to noble for Ubuntu 24.04
- Remove clang default from bootstrap-cmake-linux.sh; now uses
  system default compiler unless CC/CXX are explicitly set

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 11:11:24 +09:00
Syoyo Fujita
39a9a656a3 Fix bootstrap-cmake-linux.sh to respect CC/CXX environment variables
The script was hardcoding CXX=clang++ CC=clang, ignoring any
user-provided environment variables. Now uses shell parameter
expansion to default to clang only if CC/CXX are not already set.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 10:04:16 +09:00
Syoyo Fujita
8834878173 Fix timeSamples pprint for array types and add bounds checking
- Fix move constructor/assignment operator to transfer value array storage
  fields (_value_array_storage, _value_array_refs, _use_value_array)
- Fix copy constructor/assignment operator for value array storage fields
- Add bounds checking for blocked[] and offsets[] array access in pprint
- Strip TYPE_ID_1D_ARRAY_BIT before type lookup in print_pod_value_dispatch
  and get_pod_type_size to handle array element types correctly
- Add handler for value array storage path in get_samples()
- Set _use_pod=false when using value array storage

This fixes the "Unknown type_id: 1048618" error when printing array-typed
timeSamples (e.g., color3f[]) and prevents heap-buffer-overflow when
printing timeSamples with None values.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 07:02:27 +09:00
Syoyo Fujita
4c6a78770e make no texture load and no usd print default.
add release build script.
2025-12-13 07:22:33 +09:00
Syoyo Fujita
10a4570cbc Refactor TypedArray to use packed pointer wrapper around TypedArrayImpl
This change completes the TypedArray packed pointer implementation by:
- Renaming original TypedArray class to TypedArrayImpl
- Introducing TypedArray as a packed pointer wrapper using PackedPointer<TypedArrayImpl<T>>
- Updating all call sites to use operator-> for packed pointer access
- Removing cassert dependency and assert calls for better portability
- Adding explicit clang compiler selection in bootstrap script

This enables efficient deduplication of TimeSamples data through pointer packing
while maintaining a similar API surface.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-09 07:25:11 +09:00
Syoyo Fujita
367e3b85e2 Fix msan build 2024-12-29 23:27:04 +09:00
Syoyo Fujita
62561ac2c8 MSAN support w.i.p. 2024-12-27 23:40:28 +09:00
Syoyo Fujita
38f0159d86 add build with libc++ script. 2024-12-26 22:34:30 +09:00
Syoyo Fujita
42c1ad8c14 Enable TIFF and EXR build on CI + Arm build. 2023-03-29 18:41:35 +09:00
Syoyo Fujita
1f0130903c Add cmake toolchain file for linking with LLD. 2022-09-26 01:10:28 +09:00
Syoyo Fujita
6df4623818 Add gcc-4.9 build(oldest gcc compiler which supports (most of )C++14).
Fix 32bit CI build.
2022-09-18 01:42:09 +09:00
Syoyo Fujita
b158c289c9 Increse StackSize of WASI build to avoid potential stack-overflow for large USDZ data.
add print_array_snipped(). Print array data with snipping(for debugging purpose).
2022-09-17 22:21:36 +09:00
Syoyo Fujita
c9fac15fe2 Add Linux 32bit build support. 2022-09-17 19:13:40 +09:00
Syoyo Fujita
345e7358fb Improve Relation & Connection implementation. 2022-08-10 22:42:09 +09:00
Syoyo Fujita
17fec22654 Add ci build script for macOS. 2022-08-05 21:16:04 +09:00
Syoyo Fujita
71d24ff79d CI: Use rpath-fixed python build.
Fix build on llvm-mingw.
2022-08-04 22:48:47 +09:00
Syoyo Fujita
51374d3190 Add local Python build script(for C.I. build)
Add tinyusdz cmake script using locally installed Python.
2022-08-03 21:57:02 +09:00
Syoyo Fujita
edb0fa980a Try to fix Android CI build on Github Actions. 2022-07-27 01:32:13 +09:00
Syoyo Fujita
79a2612aa3 Disable Ninja generator for Android CI build(Sometimes CI failed to find
Ninja).
2022-07-27 01:04:33 +09:00
Syoyo Fujita
05f8e93682 USDA parser refactoring(W.I.P.) 2022-07-16 19:51:17 +09:00
Syoyo Fujita
a6dc535285 Modularize USDA Parser/Writer and USDC Writer. 2022-07-13 23:00:54 +09:00
Syoyo Fujita
0953d7c7bc gcc4.9 is not available, so use gcc5(also downgrade ubuntu Linux image
from 20.04 to 18.04)
2021-08-25 00:14:28 +09:00
Syoyo Fujita
ea61a6c759 gcc4.8 -> gcc4.9 2021-08-23 20:48:23 +09:00
Syoyo Fujita
692b304dde Add msys build script(Git for Windows + llvm-mingw) 2021-08-16 02:05:30 +09:00
Syoyo Fujita
f3a501e237 Setup Blender python module build config. 2021-07-27 21:44:23 +09:00
Syoyo Fujita
aebf2c7798 Fix compile for emscripten(32bit platform) 2020-08-17 16:26:43 +09:00
Syoyo Fujita
6e0f88cf3a Add clang-cl build in WSL.
Fix build with clang-cl
2020-07-17 02:54:50 +09:00
Syoyo Fujita
ac14773e7b Add ios toolchain. 2020-05-13 15:00:48 +09:00
Syoyo Fujita
5a8e0e999a Initial support of Android and iOS build on Github Actions. 2020-05-13 13:50:13 +09:00
Syoyo Fujita
9bca6a007a Support mingw gcc and llvm-ming(clang) build. 2020-05-10 17:21:43 +09:00
Syoyo Fujita
038d5474ff Add LLVM-MinGW bootstrap. 2020-04-21 01:24:57 +09:00
Syoyo Fujita
35c29db505 Add CI build of TinyUSDZ with OpenSubdiv 2020-04-20 18:23:58 +09:00
Syoyo Fujita
5fdb1e1295 Embed OpenSubdiv code to TinyUSDZ. 2020-04-20 18:09:59 +09:00
Syoyo Fujita
a0ada52ddf Add CI build with gcc4.8(oldest C++11 supported(but std::regex is broken) gcc) 2020-04-20 15:38:09 +09:00
Syoyo Fujita
34e47eb0a6 Add gcc aarch64 cross compile script. 2020-04-20 03:10:53 +09:00
Syoyo
87e36fdb16 Add cmake linux bootstrap script. 2020-04-15 02:22:22 +09:00
Syoyo
a015abd331 Fix build on macOS
Update README
2020-04-15 01:07:04 +09:00
Syoyo Fujita
8378e95822 Add script to clone OpenSubdiv. 2020-04-04 18:18:32 +09:00
Syoyo Fujita
d91db01e19 Initial support for building with OpenSubdiv. 2020-04-04 18:16:28 +09:00
Syoyo Fujita
372c70f9bd Implement Field, FieldSet, Spec parser. 2019-12-27 01:55:32 +09:00