prysm-pulse/beacon-chain/state/state-native/v1
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
..
beacon_state_mainnet_test.go Native beacon state: v1 (#10086) 2022-01-24 11:24:38 +01:00
beacon_state_mainnet.go Native beacon state: fieldtrie package (#10146) 2022-02-02 12:18:06 +00:00
beacon_state_minimal_test.go Native beacon state: v1 (#10086) 2022-01-24 11:24:38 +01:00
beacon_state_minimal.go Native beacon state: fieldtrie package (#10146) 2022-02-02 12:18:06 +00:00
BUILD.bazel Refactor for DRY state getters_validator_test and getters_test (#10117) 2022-02-11 14:48:29 +08:00
doc.go Split state package into state-proto and state-native (#10069) 2022-01-13 12:23:53 +01:00
field_roots.go Remove SSZ Cache (#10256) 2022-02-22 17:27:51 +08:00
generated.ssz.go Native beacon state: v1 (#10086) 2022-01-24 11:24:38 +01:00
getters_attestation_test.go Split state package into state-proto and state-native (#10069) 2022-01-13 12:23:53 +01:00
getters_attestation.go Native beacon state: v1 (#10086) 2022-01-24 11:24:38 +01:00
getters_block_test.go Native beacon state: v1 (#10086) 2022-01-24 11:24:38 +01:00
getters_block.go Native beacon state: v1 (#10086) 2022-01-24 11:24:38 +01:00
getters_checkpoint.go Native beacon state: v1 (#10086) 2022-01-24 11:24:38 +01:00
getters_eth1.go Native beacon state: v1 (#10086) 2022-01-24 11:24:38 +01:00
getters_misc.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
getters_randao.go Native beacon state: v1 (#10086) 2022-01-24 11:24:38 +01:00
getters_state.go Native beacon state: v1 (#10086) 2022-01-24 11:24:38 +01:00
getters_test.go Refactor for DRY state getters_validator_test and getters_test (#10117) 2022-02-11 14:48:29 +08:00
getters_validator_test.go Refactor for DRY state getters_validator_test and getters_test (#10117) 2022-02-11 14:48:29 +08:00
getters_validator.go Add static analysis for unsafe uint casting (#10318) 2022-03-11 09:34:30 +00:00
proofs_test.go Split state package into state-proto and state-native (#10069) 2022-01-13 12:23:53 +01:00
proofs.go Native beacon state: fieldtrie package (#10146) 2022-02-02 12:18:06 +00:00
readonly_validator_test.go Split state package into state-proto and state-native (#10069) 2022-01-13 12:23:53 +01:00
readonly_validator.go Split state package into state-proto and state-native (#10069) 2022-01-13 12:23:53 +01:00
references_test.go Return state interface from native state constructors (#10208) 2022-02-14 17:51:22 +08:00
setters_attestation_test.go Return state interface from native state constructors (#10208) 2022-02-14 17:51:22 +08:00
setters_attestation.go Native beacon state: v1 (#10086) 2022-01-24 11:24:38 +01:00
setters_block.go Native beacon state: v1 (#10086) 2022-01-24 11:24:38 +01:00
setters_checkpoint.go Native beacon state: v1 (#10086) 2022-01-24 11:24:38 +01:00
setters_eth1.go Native beacon state: v1 (#10086) 2022-01-24 11:24:38 +01:00
setters_misc.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
setters_randao.go Native beacon state: v1 (#10086) 2022-01-24 11:24:38 +01:00
setters_state.go Native beacon state: v1 (#10086) 2022-01-24 11:24:38 +01:00
setters_validator.go Native beacon state: v1 (#10086) 2022-01-24 11:24:38 +01:00
state_test.go Return state interface from native state constructors (#10208) 2022-02-14 17:51:22 +08:00
state_trie_test.go Integration of Vectorized Sha256 In Prysm (#10166) 2022-02-28 21:56:12 +08:00
state_trie.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
types_test.go Return state interface from native state constructors (#10208) 2022-02-14 17:51:22 +08:00
types.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
unsupported_getters.go Split state package into state-proto and state-native (#10069) 2022-01-13 12:23:53 +01:00
unsupported_setters.go Split state package into state-proto and state-native (#10069) 2022-01-13 12:23:53 +01:00