bundler_sfm
bundler_sfm copied to clipboard
[Out-of-bounds] `proj` in `Camera.cpp`
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!