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

Declaration of simple C++ method named "read()" triggers CWE- #83

Open
0xg0nz0 opened this issue Apr 22, 2024 · 0 comments
Open

Declaration of simple C++ method named "read()" triggers CWE- #83

0xg0nz0 opened this issue Apr 22, 2024 · 0 comments

Comments

@0xg0nz0
Copy link

0xg0nz0 commented Apr 22, 2024

This C++ template method header declaration:

    template <typename T, typename std::enable_if<std::is_base_of<icp::model::Model, T>::value>::type* = nullptr>
    T read(std::istream& in);

triggered a false positive:

sdk/serialization.h:17:  [1] (buffer) read:Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20).
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