flawfinder icon indicating copy to clipboard operation
flawfinder copied to clipboard

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

Open 0xg0nz0 opened this issue 10 months ago • 0 comments

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).

0xg0nz0 avatar Apr 22 '24 19:04 0xg0nz0