bundler_sfm icon indicating copy to clipboard operation
bundler_sfm copied to clipboard

[Out-of-bounds] `proj` in `Camera.cpp`

Open stoianmihail opened this issue 2 years ago • 0 comments

Hi!

While running make, it encountered this issue:

Camera.cpp:166:23: warning: array subscript 2 is outside array bounds of ‘double [2]’ [-Warray-bounds] 166 | return (proj[2] < 0.0); | ~~~~~~^ Camera.cpp:855:9: note: while referencing ‘proj’ 855 | double proj[2]; .

And indeed, at this line, proj has only 2 fields.

Thanks!

stoianmihail avatar May 08 '22 16:05 stoianmihail