gosec/testutils
Morgen Malinoski a018cf0fbb
Feature: G602 Slice Bound Checking (#973)
* Added slice bounds testing for slice expressions.

* Added checking slice index.

* Added test for reassigning slice.

* Store capacities on reslicing.

* Scope change clears map. Func name used to track slices.

* Map CallExpr to check bounds when passing to functions.

* Fixed linter errors.

* Updated rulelist with CWE mapping.

* Added comment for NewSliceBoundCheck.

* Addressed nil cap runtime error.

* Replaced usage of nil in call arg map with dummy callexprs.

* Updated comments, wrapped error return, addressed other review concerns.
2023-06-21 09:56:36 +02:00
..
log.go Major rework of codebase 2017-07-19 15:17:00 -06:00
pkg.go correct gci linter (#946) 2023-03-30 09:31:24 +02:00
source.go Feature: G602 Slice Bound Checking (#973) 2023-06-21 09:56:36 +02:00
visitor.go Handle properly the gosec module version v2 2020-04-06 09:06:23 -07:00