prysm-pulse/beacon-chain/state/stateutil
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
..
benchmark_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
block_header_root.go Remove Support for 2d-list Hashers (#10290) 2022-03-04 15:19:07 +00:00
BUILD.bazel Integration of Vectorized Sha256 In Prysm (#10166) 2022-02-28 21:56:12 +08:00
eth1_root.go Remove Support for 2d-list Hashers (#10290) 2022-03-04 15:19:07 +00:00
field_root_attestation.go Remove Support for 2d-list Hashers (#10290) 2022-03-04 15:19:07 +00:00
field_root_eth1.go Remove SSZ Cache (#10256) 2022-02-22 17:27:51 +08:00
field_root_test.go Remove SSZ Cache (#10256) 2022-02-22 17:27:51 +08:00
field_root_validator_test.go Integration of Vectorized Sha256 In Prysm (#10166) 2022-02-28 21:56:12 +08:00
field_root_validator.go Remove Support for 2d-list Hashers (#10290) 2022-03-04 15:19:07 +00:00
field_root_vector.go Remove SSZ Cache (#10256) 2022-02-22 17:27:51 +08:00
participation_bit_root.go Remove Support for 2d-list Hashers (#10290) 2022-03-04 15:19:07 +00:00
pending_attestation_root.go Remove Support for 2d-list Hashers (#10290) 2022-03-04 15:19:07 +00:00
reference_bench_test.go State: Refactor Reference and ValidatorMapHandler to stateutil pkg (#8589) 2021-03-10 20:57:46 -06:00
reference.go State: Refactor Reference and ValidatorMapHandler to stateutil pkg (#8589) 2021-03-10 20:57:46 -06:00
state_hasher.go Remove SSZ Cache (#10256) 2022-02-22 17:27:51 +08:00
state_root_test.go Use fieldparams for BLS public key (#10042) 2022-01-06 17:33:08 +00:00
sync_committee.root.go Remove Support for 2d-list Hashers (#10290) 2022-03-04 15:19:07 +00:00
trie_helpers_test.go Integration of Vectorized Sha256 In Prysm (#10166) 2022-02-28 21:56:12 +08:00
trie_helpers.go Add static analysis for unsafe uint casting (#10318) 2022-03-11 09:34:30 +00:00
validator_map_handler.go Use fieldparams for BLS public key (#10042) 2022-01-06 17:33:08 +00:00
validator_root_test.go stateutil: Reduce allocations by specifying slice capacity eager (#9977) 2021-12-03 09:06:05 +00:00
validator_root.go Remove Support for 2d-list Hashers (#10290) 2022-03-04 15:19:07 +00:00