[TODO] Rewrite recursive function call with for-loop
Opened this issue · 1 comments
syoyo commented
There are some recursive function call in TinyUSDZ, for example:
To avoid potential stack overflow, rewrite it to for-loop
(For security, for running TinyUSDZ on embedded(wasm) environment)
syoyo commented
The stackoverflow also happens in crate-reader.cc::!BuildDecompressedPathsImpl
when input USD scene has too many USD Prims(too deep PathIndex hierarchy)