prysm-pulse/beacon-chain/core/transition
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
..
interop Move Shared Packages into Math/ and IO/ (#9622) 2021-09-17 21:55:24 +00:00
stateutils Use fieldparams for BLS public key (#10042) 2022-01-06 17:33:08 +00:00
altair_transition_no_verify_sig_test.go Check participation flag offset length (#9784) 2021-10-21 15:01:09 +00:00
bellatrix_transition_no_verify_sig_test.go Renaming Random in ExecutionPayloads to PrevRandao (#10283) 2022-02-26 03:47:16 +00:00
benchmarks_test.go Move slot epoch from core to time pkg (#9714) 2021-09-30 19:00:14 +00:00
BUILD.bazel Make Next Slot Cache Default (#10110) 2022-02-02 11:40:46 +00:00
log.go Rename beacon-chain/core/state to beacon-chain/core/transition pkg (#9530) 2021-09-08 10:41:47 +00:00
skip_slot_cache_test.go Use beacon state interfaces instead of concrete structs (#10195) 2022-02-08 09:30:06 +00:00
skip_slot_cache.go Create Encoding Bytesutil (#9658) 2021-09-23 15:23:37 +00:00
state_fuzz_test.go Use beacon state interfaces instead of concrete structs (#10195) 2022-02-08 09:30:06 +00:00
state_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
state.go Refactor States To Allow for Single Cached Hasher (#9922) 2021-11-29 16:30:17 +00:00
trailing_slot_state_cache_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
trailing_slot_state_cache.go Make Next Slot Cache Default (#10110) 2022-02-02 11:40:46 +00:00
transition_fuzz_test.go Use beacon state interfaces instead of concrete structs (#10195) 2022-02-08 09:30:06 +00:00
transition_no_verify_sig_test.go #10036 Replace codename Merge with Bellatrix (2nd step) (#10116) 2022-01-26 07:24:47 +00:00
transition_no_verify_sig.go Retrieving state by slot to always apply canonical block at slot, when available (#10255) 2022-03-09 13:33:18 -06:00
transition_test.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
transition.go Add static analysis for unsafe uint casting (#10318) 2022-03-11 09:34:30 +00:00