prysm-pulse/beacon-chain/sync
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
..
initial-sync Add static analysis for unsafe uint casting (#10318) 2022-03-11 09:34:30 +00:00
batch_verifier_test.go Rename To Signature Batch (#9926) 2021-11-23 17:57:06 +01:00
batch_verifier.go Code cleanup (#9992) 2021-12-07 17:52:39 +00:00
BUILD.bazel Integration of Vectorized Sha256 In Prysm (#10166) 2022-02-28 21:56:12 +08:00
context_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
context.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
deadlines.go Move Shared/Params Into Config/Params (#9642) 2021-09-21 19:59:25 +00:00
decode_pubsub_test.go Code cleanup (#9992) 2021-12-07 17:52:39 +00:00
decode_pubsub.go Code cleanup (#9992) 2021-12-07 17:52:39 +00:00
doc.go Regular Sync - First Pass (#3201) 2019-08-16 13:13:04 -04:00
error_test.go [Service Config Revamp] - Sync Service With Functional Options (#9859) 2021-11-05 19:08:58 +00:00
error.go [Service Config Revamp] - Sync Service With Functional Options (#9859) 2021-11-05 19:08:58 +00:00
fork_watcher_test.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
fork_watcher.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
fuzz_exports.go Remove libfuzzer / afl based builds in favor of go 1.18 fuzz testing (#10065) 2022-01-20 04:51:02 +00:00
log.go Regular Sync - First Pass (#3201) 2019-08-16 13:13:04 -04:00
metrics.go [Service Config Revamp] - Sync Service With Functional Options (#9859) 2021-11-05 19:08:58 +00:00
options.go [Service Config Revamp] - Sync Service With Functional Options (#9859) 2021-11-05 19:08:58 +00:00
pending_attestations_queue_test.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
pending_attestations_queue.go Code cleanup (#9992) 2021-12-07 17:52:39 +00:00
pending_blocks_queue_test.go Prevent Reprocessing of a Block From Our Pending Queue (#9904) 2021-11-17 10:05:50 -05:00
pending_blocks_queue.go Add static analysis for unsafe uint casting (#10318) 2022-03-11 09:34:30 +00:00
rate_limiter_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
rate_limiter.go Code cleanup (#9992) 2021-12-07 17:52:39 +00:00
rpc_beacon_blocks_by_range_test.go Revert "Replace a Few IntFlags with Uint64Flags (#9959)" (#10163) 2022-02-01 08:51:17 +00:00
rpc_beacon_blocks_by_range.go Add static analysis for unsafe uint casting (#10318) 2022-03-11 09:34:30 +00:00
rpc_beacon_blocks_by_root_test.go [Service Config Revamp] - Sync Service With Functional Options (#9859) 2021-11-05 19:08:58 +00:00
rpc_beacon_blocks_by_root.go [Service Config Revamp] - Sync Service With Functional Options (#9859) 2021-11-05 19:08:58 +00:00
rpc_chunked_response_test.go Bellatrix sync changes (#10097) 2022-01-28 16:26:52 +00:00
rpc_chunked_response.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
rpc_goodbye_test.go [Service Config Revamp] - Sync Service With Functional Options (#9859) 2021-11-05 19:08:58 +00:00
rpc_goodbye.go [Service Config Revamp] - Sync Service With Functional Options (#9859) 2021-11-05 19:08:58 +00:00
rpc_metadata_test.go Integration of Vectorized Sha256 In Prysm (#10166) 2022-02-28 21:56:12 +08:00
rpc_metadata.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
rpc_ping_test.go [Service Config Revamp] - Sync Service With Functional Options (#9859) 2021-11-05 19:08:58 +00:00
rpc_ping.go [Service Config Revamp] - Sync Service With Functional Options (#9859) 2021-11-05 19:08:58 +00:00
rpc_send_request_test.go Code cleanup (#9992) 2021-12-07 17:52:39 +00:00
rpc_send_request.go Refactor: move functions beacon-chain/core/time -> time/slots (#9719) 2021-10-01 15:17:57 -05:00
rpc_status_test.go Code cleanup (#9992) 2021-12-07 17:52:39 +00:00
rpc_status.go Add static analysis for unsafe uint casting (#10318) 2022-03-11 09:34:30 +00:00
rpc_test.go [Service Config Revamp] - Sync Service With Functional Options (#9859) 2021-11-05 19:08:58 +00:00
rpc.go [Service Config Revamp] - Sync Service With Functional Options (#9859) 2021-11-05 19:08:58 +00:00
service_test.go fix TestSyncHandlers_WaitTillSynced (#10328) 2022-03-09 05:42:03 +00:00
service.go [Service Config Revamp] - Sync Service With Functional Options (#9859) 2021-11-05 19:08:58 +00:00
subscriber_beacon_aggregate_proof_test.go Use signature length from fieldparams (#10019) 2021-12-15 15:14:30 -05:00
subscriber_beacon_aggregate_proof.go [Service Config Revamp] - Sync Service With Functional Options (#9859) 2021-11-05 19:08:58 +00:00
subscriber_beacon_attestation.go Code cleanup (#9992) 2021-12-07 17:52:39 +00:00
subscriber_beacon_blocks_test.go Use beacon state interfaces instead of concrete structs (#10195) 2022-02-08 09:30:06 +00:00
subscriber_beacon_blocks.go Bellatrix sync changes (#10097) 2022-01-28 16:26:52 +00:00
subscriber_handlers.go [Service Config Revamp] - Sync Service With Functional Options (#9859) 2021-11-05 19:08:58 +00:00
subscriber_sync_committee_message.go [Service Config Revamp] - Sync Service With Functional Options (#9859) 2021-11-05 19:08:58 +00:00
subscriber_sync_contribution_proof.go [Service Config Revamp] - Sync Service With Functional Options (#9859) 2021-11-05 19:08:58 +00:00
subscriber_test.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
subscriber.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
subscription_topic_handler_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
subscription_topic_handler.go Various clean up before v2 (#9672) 2021-09-24 17:42:16 +00:00
sync_test.go Add Goland Standard "cmd" Pattern for Beacon-Chain Binaries (#8540) 2021-03-02 13:36:03 -06:00
utils_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
utils.go Code cleanup (#9992) 2021-12-07 17:52:39 +00:00
validate_aggregate_proof_test.go cherry picked PR for #10274 (#10300) 2022-03-06 08:09:12 +00:00
validate_aggregate_proof.go cherry picked PR for #10274 (#10300) 2022-03-06 08:09:12 +00:00
validate_attester_slashing_test.go cherry picked PR for #10274 (#10300) 2022-03-06 08:09:12 +00:00
validate_attester_slashing.go cherry picked PR for #10274 (#10300) 2022-03-06 08:09:12 +00:00
validate_beacon_attestation_test.go cherry picked PR for #10274 (#10300) 2022-03-06 08:09:12 +00:00
validate_beacon_attestation.go cherry picked PR for #10274 (#10300) 2022-03-06 08:09:12 +00:00
validate_beacon_blocks_test.go cherry picked PR of #10233 (#10301) 2022-03-07 13:19:07 +00:00
validate_beacon_blocks.go Forkchoice featureflag (#10299) 2022-03-09 03:05:51 +00:00
validate_proposer_slashing_test.go cherry picked PR for #10274 (#10300) 2022-03-06 08:09:12 +00:00
validate_proposer_slashing.go cherry picked PR for #10274 (#10300) 2022-03-06 08:09:12 +00:00
validate_sync_committee_message_test.go cherry picked PR for #10274 (#10300) 2022-03-06 08:09:12 +00:00
validate_sync_committee_message.go cherry picked PR for #10274 (#10300) 2022-03-06 08:09:12 +00:00
validate_sync_contribution_proof_test.go cherry picked PR for #10274 (#10300) 2022-03-06 08:09:12 +00:00
validate_sync_contribution_proof.go cherry picked PR for #10274 (#10300) 2022-03-06 08:09:12 +00:00
validate_voluntary_exit_test.go cherry picked PR for #10274 (#10300) 2022-03-06 08:09:12 +00:00
validate_voluntary_exit.go cherry picked PR for #10274 (#10300) 2022-03-06 08:09:12 +00:00