prysm-pulse/beacon-chain/powchain
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
..
engine-api-client/v1 RPC: add prepare execution payload (#10311) 2022-03-07 18:43:20 +00:00
testing Cleanup Powchain Service (#10259) 2022-02-18 14:13:31 +00:00
types Create Encoding Bytesutil (#9658) 2021-09-23 15:23:37 +00:00
block_cache_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
block_cache.go Move Shared/Params Into Config/Params (#9642) 2021-09-21 19:59:25 +00:00
block_reader_test.go Refactor mock test helpers (#10133) 2022-01-26 14:48:20 +00:00
block_reader.go Add static analysis for unsafe uint casting (#10318) 2022-03-11 09:34:30 +00:00
BUILD.bazel Check Engine API Transition Configuration in Background (#10250) 2022-03-01 21:38:51 +00:00
check_transition_config_test.go Check Engine API Transition Configuration in Background (#10250) 2022-03-01 21:38:51 +00:00
check_transition_config.go Check Engine API Transition Configuration in Background (#10250) 2022-03-01 21:38:51 +00:00
deposit_test.go Use signature length from fieldparams (#10019) 2021-12-15 15:14:30 -05:00
deposit.go [Service Revamp] - Powchain Service With Functional Options (#9856) 2021-11-04 14:19:44 -04:00
init_test.go Move Shared/Params Into Config/Params (#9642) 2021-09-21 19:59:25 +00:00
log_processing_test.go Cleanup Powchain Service (#10259) 2022-02-18 14:13:31 +00:00
log_processing.go Add static analysis for unsafe uint casting (#10318) 2022-03-11 09:34:30 +00:00
log.go Unify the pattern of using a package-level logger (#8245) 2021-01-11 20:03:28 +00:00
options.go Engine API Client Authentication for the Merge via HTTP (#10236) 2022-02-25 19:08:43 +00:00
powchain_test.go Update TestMain(): do not call os.Exit() explicitly (#8046) 2020-12-04 16:10:07 +00:00
prometheus_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
prometheus.go Code cleanup (#9992) 2021-12-07 17:52:39 +00:00
provider_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
provider.go Move iputil and httpuil pkgs into network pkg (#9621) 2021-09-16 19:12:27 +00:00
service_test.go Refactor mock test helpers (#10133) 2022-01-26 14:48:20 +00:00
service.go Add static analysis for unsafe uint casting (#10318) 2022-03-11 09:34:30 +00:00