Skip to content

Fix flawfinder issue - potential buffer overflow #89

@eljonny

Description

@eljonny
include/internal/TestCPPUtil.h:107:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            alignas(T) unsigned char data[sizeof(T)];

Metadata

Metadata

Assignees

Labels

static-analysisAn issue related to a static analysis resulttest-utilsRelated to TestCPP util functions and TestCPPUtil

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions