Skip to content

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

Open
@stoianmihail

Description

@stoianmihail

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions