Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Out-of-bounds] proj in Camera.cpp #81

Open
stoianmihail opened this issue May 8, 2022 · 0 comments
Open

[Out-of-bounds] proj in Camera.cpp #81

stoianmihail opened this issue May 8, 2022 · 0 comments

Comments

@stoianmihail
Copy link

stoianmihail commented May 8, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant