prysm-pulse/beacon-chain/rpc/prysm/v1alpha1/beacon
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
..
assignments_test.go Retrieving state by slot to always apply canonical block at slot, when available (#10255) 2022-03-09 13:33:18 -06:00
assignments.go Retrieving state by slot to always apply canonical block at slot, when available (#10255) 2022-03-09 13:33:18 -06:00
attestations_test.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
attestations.go Refactor: move functions beacon-chain/core/time -> time/slots (#9719) 2021-10-01 15:17:57 -05:00
beacon_test.go Move Shared/Params Into Config/Params (#9642) 2021-09-21 19:59:25 +00:00
blocks_test.go Retrieving state by slot to always apply canonical block at slot, when available (#10255) 2022-03-09 13:33:18 -06:00
blocks.go Retrieving state by slot to always apply canonical block at slot, when available (#10255) 2022-03-09 13:33:18 -06:00
BUILD.bazel Retrieving state by slot to always apply canonical block at slot, when available (#10255) 2022-03-09 13:33:18 -06:00
committees_test.go Retrieving state by slot to always apply canonical block at slot, when available (#10255) 2022-03-09 13:33:18 -06:00
committees.go Retrieving state by slot to always apply canonical block at slot, when available (#10255) 2022-03-09 13:33:18 -06:00
config_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
config.go Code cleanup (#9992) 2021-12-07 17:52:39 +00:00
init_test.go Move Shared/Params Into Config/Params (#9642) 2021-09-21 19:59:25 +00:00
log.go Restructure RPC packages to be future compatible (#9136) 2021-07-02 15:54:52 +00:00
server.go Retrieving state by slot to always apply canonical block at slot, when available (#10255) 2022-03-09 13:33:18 -06:00
slashings_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
slashings.go Create Container Package for Shared/ Subpackages (#9607) 2021-09-16 12:05:58 -05:00
validators_stream_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
validators_stream.go Add static analysis for unsafe uint casting (#10318) 2022-03-11 09:34:30 +00:00
validators_test.go Retrieving state by slot to always apply canonical block at slot, when available (#10255) 2022-03-09 13:33:18 -06:00
validators.go Retrieving state by slot to always apply canonical block at slot, when available (#10255) 2022-03-09 13:33:18 -06:00