Open syoyo opened 1 year ago
Describe the issue
tinygltf has some C assert, which is not recommended to run tinygltf in secure environment. (e.g. read malcious glTF file in a server)
assert
The code should not segfault and errors should be reported properly. Removing assert recommended.
To Reproduce
Expected behaviour
No assert in tiny_gltf.h. (Raise an C++ exception when TINYGLTF_NOEXCEPTION is not set(an app is compiled with C++ exception enabled))
TINYGLTF_NOEXCEPTION
Screenshots
N/A
Additional context
Prepared remove-assert branch: https://github.com/syoyo/tinygltf/tree/remove-assert
remove-assert
Describe the issue
tinygltf has some C
assert
, which is not recommended to run tinygltf in secure environment. (e.g. read malcious glTF file in a server)The code should not segfault and errors should be reported properly. Removing
assert
recommended.To Reproduce
Expected behaviour
No
assert
in tiny_gltf.h. (Raise an C++ exception whenTINYGLTF_NOEXCEPTION
is not set(an app is compiled with C++ exception enabled))Screenshots
N/A
Additional context
N/A