Query module OffsetUseBeforeRangeCheck

name
Array offset used before range check
description
Accessing an array offset before checking the range means that the program may attempt to read beyond the end of a buffer
kind
problem
id
cpp/offset-use-before-range-check
problem.severity
warning
precision
medium
tags
reliability security external/cwe/cwe-120 external/cwe/cwe-125

Imports

cpp

Provides classes and predicates for working with C/C++/ObjC/ObjC++ code.

Predicates