CodeQL query to detect unsafe uses of std::vector::operator[].

This commit is contained in:
Kevin Backhouse
2021-07-11 15:49:51 +01:00
parent 9284b58bfc
commit a2854f358a
3 changed files with 210 additions and 0 deletions
@@ -2,6 +2,7 @@
* @name NULL iterator deref
* @description Dereferencing an iterator without checking that it's valid could cause a crash.
* @kind problem
* @problem.severity warning
* @id cpp/null-iterator-deref
* @tags security
* external/cwe/cwe-476