riley-harper / RayTracer

Code for a raytracer that I built in spring 2021, along with example images!
0 stars 0 forks source link

Weird Segfault When `camera_fwd` is equal to `camera_up` #31

Open riley-harper opened 3 years ago

riley-harper commented 3 years ago

When we compute camera_right from camera_fwd and camera_up, if camera_fwd and camera_up are the same, then calling ToString() on camera_right in Parser.cpp causes a segfault. I've only noticed this behavior with optimization turned on, and turning on address sanitization seemed to prevent it.