1
0
mirror of https://github.com/securego/gosec.git synced 2025-03-25 21:29:20 +02:00
Morgen Malinoski a018cf0fbb
Feature: G602 Slice Bound Checking ()
* 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
..
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00
2023-02-16 09:45:28 +01:00
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00
2022-01-03 18:11:35 +01:00
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00
2023-02-16 09:45:28 +01:00
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00