gosec/rules
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
..
archive.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
bind.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
blocklist.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
decompression-bomb.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
directory-traversal.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
errors.go Extract the issue in its own package 2023-02-16 09:45:28 +01:00
fileperms.go Extract the issue in its own package 2023-02-16 09:45:28 +01:00
fileperms_test.go fileperms: bitwise permission comparison (#883) 2022-10-20 08:48:40 +02:00
hardcoded_credentials.go Feature: G101 match variable values and names (#971) 2023-06-15 10:18:03 +02:00
http_serve.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
implicit_aliasing.go Recognize struct field in G601 2023-06-02 17:17:10 +02:00
integer_overflow.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
math_big_rat.go Extract the issue in its own package 2023-02-16 09:45:28 +01:00
pprof.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
rand.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
readfile.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
rsa.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
rulelist.go Feature: G602 Slice Bound Checking (#973) 2023-06-21 09:56:36 +02:00
rules_suite_test.go Update to ginkgo v2 (#753) 2022-01-03 18:11:35 +01:00
rules_test.go Feature: G602 Slice Bound Checking (#973) 2023-06-21 09:56:36 +02:00
slice_bounds.go Feature: G602 Slice Bound Checking (#973) 2023-06-21 09:56:36 +02:00
slowloris.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
sql.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
ssh.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
ssrf.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
subproc.go Fix typos in comments, vars and tests 2023-05-30 08:26:41 +02:00
tempfiles.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
templates.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
tls.go Extract the issue in its own package 2023-02-16 09:45:28 +01:00
tls_config.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
unsafe.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
weakcrypto.go Fix some linting warnings 2023-03-20 10:25:45 +01:00