Get the latest tech news
Robust Wavefront OBJ model parsing in C
.com/blog/2025/03/02/ Wavefront OBJ is a line-oriented, text format for 3D geometry. It’s widely supported by modeling software, easy to parse, and trivial to emit, much like Netpbm for 2D image data.
While typically only loading their own model data, so robustness doesn’t much matter, they usually have hard limitations and don’t stand up to fuzz testing. Side note: When using a multi GB arena, issuing such huge read requests stress tests the underlying IO system. In this case I used SDL2 for the demo, and SDL lost the ability to read files after I increased the arena size to 4GB in order to test a gigantic model(“Power Plant”).
Or read this on Hacker News