prysm-pulse/beacon-chain/p2p
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
..
encoder Add static analysis for unsafe uint casting (#10318) 2022-03-11 09:34:30 +00:00
peers Add static analysis for unsafe uint casting (#10318) 2022-03-11 09:34:30 +00:00
testing Revert "Replace a Few IntFlags with Uint64Flags (#9959)" (#10163) 2022-02-01 08:51:17 +00:00
types #10036 Replace codename Merge with Bellatrix (2nd step) (#10116) 2022-01-26 07:24:47 +00:00
addr_factory_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
addr_factory.go QSP-47 Remove Meaningless Relay Addr Check (#6388) 2020-06-25 09:16:30 +00:00
broadcaster_test.go Fix P2P Test (#10157) 2022-01-31 12:23:25 +00:00
broadcaster.go Add static analysis for unsafe uint casting (#10318) 2022-03-11 09:34:30 +00:00
BUILD.bazel Multiclient E2E With Lighthouse (#10020) 2022-02-02 19:13:52 +00:00
config.go Revert "Replace a Few IntFlags with Uint64Flags (#9959)" (#10163) 2022-02-01 08:51:17 +00:00
connection_gater_test.go Revert "Replace a Few IntFlags with Uint64Flags (#9959)" (#10163) 2022-02-01 08:51:17 +00:00
connection_gater.go Code cleanup (#9992) 2021-12-07 17:52:39 +00:00
dial_relay_node_test.go p2p: Update libp2p and libp2p-pubsub (#10082) 2022-01-14 14:06:20 +00:00
dial_relay_node.go Refactors calls to deprecated libp2p methods (#6554) 2020-07-13 02:28:40 +00:00
discovery_test.go Code cleanup (#9992) 2021-12-07 17:52:39 +00:00
discovery.go Update Libp2p to v0.15.1 (#9960) 2021-12-01 18:09:34 +00:00
doc.go Change Eth2 Repository Names (#9425) 2021-08-19 13:00:57 -05:00
fork_test.go Use field params root length (#10012) 2021-12-14 18:42:05 +00:00
fork_watcher.go Bellatrix p2p changes (#10072) 2022-01-20 22:12:15 +08:00
fork.go Refactor: move functions beacon-chain/core/time -> time/slots (#9719) 2021-10-01 15:17:57 -05:00
gossip_scoring_params_test.go Cleanup From Deepsource (#9961) 2021-12-01 18:56:07 +00:00
gossip_scoring_params.go Remove Superflous Errors From Parameter Registration (#9894) 2021-11-12 15:28:21 +00:00
gossip_topic_mappings_test.go #10036 Replace codename Merge with Bellatrix (2nd step) (#10116) 2022-01-26 07:24:47 +00:00
gossip_topic_mappings.go #10036 Replace codename Merge with Bellatrix (2nd step) (#10116) 2022-01-26 07:24:47 +00:00
handshake.go Create time Package for Shared/timeutil, mclock and slotutil (#9594) 2021-09-15 00:09:04 +00:00
info.go Unify the pattern of using a package-level logger (#8245) 2021-01-11 20:03:28 +00:00
interfaces.go Revert "Replace a Few IntFlags with Uint64Flags (#9959)" (#10163) 2022-02-01 08:51:17 +00:00
iterator.go Refactor Subnet Search (#8048) 2020-12-11 18:40:56 -08:00
log.go Clean Up P2P Service (#6574) 2020-07-13 04:16:24 +00:00
message_id_test.go Bellatrix p2p changes (#10072) 2022-01-20 22:12:15 +08:00
message_id.go Add static analysis for unsafe uint casting (#10318) 2022-03-11 09:34:30 +00:00
metaData Web3signer keymanager: key manager implementation (#10016) 2022-01-05 14:32:46 -06:00
monitoring.go Standardize Metrics To Match Minimal Metric Spec (#9623) 2021-09-17 13:35:12 +02:00
options_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
options.go Multiclient E2E With Lighthouse (#10020) 2022-02-02 19:13:52 +00:00
parameter_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
pubsub_filter_test.go Use prysm require test lib (#10039) 2022-01-05 07:06:51 +00:00
pubsub_filter.go #10036 Replace codename Merge with Bellatrix (2nd step) (#10116) 2022-01-26 07:24:47 +00:00
pubsub_fuzz_test.go go 1.18 fuzz tests: initial testing (#10063) 2022-01-29 08:01:58 +00:00
pubsub_test.go p2p: no alloc extract of gossip digest (#10055) 2022-01-06 18:17:51 +00:00
pubsub.go Add Better Error Logs for Context Deadlines (#10310) 2022-03-04 16:21:19 +00:00
rpc_topic_mappings_test.go Bellatrix p2p changes (#10072) 2022-01-20 22:12:15 +08:00
rpc_topic_mappings.go Move Shared/Params Into Config/Params (#9642) 2021-09-21 19:59:25 +00:00
sender_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
sender.go Move Shared/ Subpackages Into Monitoring/ Folder (#9591) 2021-09-14 20:59:51 +00:00
service_test.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
service.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
subnets_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
subnets.go Add static analysis for unsafe uint casting (#10318) 2022-03-11 09:34:30 +00:00
topics.go Add in P2P Changes (#9390) 2021-08-27 09:34:20 +08:00
utils_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
utils.go Move Shared Packages into Math/ and IO/ (#9622) 2021-09-17 21:55:24 +00:00
watch_peers.go Update variable names that are same as imports (#8220) 2021-01-07 10:42:03 -06:00