prysm-pulse/beacon-chain/state
Preston Van Loon c1197d7881
Add static analysis for unsafe uint casting (#10318)
* Add static analysis for unsafe uint casting

* Fix violations of uintcast

* go mod tidy

* Add exclusion to nogo for darwin build

* Add test for math.Int

* Move some things to const so they are assured not to exceed int64

* Self review

* lint

* fix tests

* fix test

* Add init check for non 64 bit OS

* Move new deps from WORKSPACE to deps.bzl

* fix bazel build for go analysis runs

* Update BUILD.bazel

Remove TODO

* add math.AddInt method

* Add new test casts

* Add case where builtin functions and declared functions are covered

* Fix new findings

* cleanup

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-03-11 09:34:30 +00:00
..
fieldtrie Add static analysis for unsafe uint casting (#10318) 2022-03-11 09:34:30 +00:00
genesis Use beacon state interfaces instead of concrete structs (#10195) 2022-02-08 09:30:06 +00:00
state-native Add static analysis for unsafe uint casting (#10318) 2022-03-11 09:34:30 +00:00
stategen Minor Cleanup from #10255 (#10337) 2022-03-11 07:34:15 +00:00
stateutil Add static analysis for unsafe uint casting (#10318) 2022-03-11 09:34:30 +00:00
testing Refactor for DRY state getters_validator_test and getters_test (#10117) 2022-02-11 14:48:29 +08:00
types Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
v1 Add static analysis for unsafe uint casting (#10318) 2022-03-11 09:34:30 +00:00
v2 Add static analysis for unsafe uint casting (#10318) 2022-03-11 09:34:30 +00:00
v3 Add static analysis for unsafe uint casting (#10318) 2022-03-11 09:34:30 +00:00
altair.go Clean up duplicated imports (#9354) 2021-08-10 14:55:24 -05:00
bellatrix.go Use beacon state interfaces instead of concrete structs (#10195) 2022-02-08 09:30:06 +00:00
BUILD.bazel Use beacon state interfaces instead of concrete structs (#10195) 2022-02-08 09:30:06 +00:00
error.go Move ErrNilValidatorsInState from one in each state version to a common one (#10074) 2022-01-18 08:19:20 +00:00
phase0.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
prometheus.go Split state package into state-proto and state-native (#10069) 2022-01-13 12:23:53 +01:00