[validation] static_assert to ensure width in unit class #16679

pull shargon wants to merge 3 commits into bitcoin:master from shargon:fix-unit-base changing 1 files +8 −0
  1. shargon commented at 10:43 AM on August 22, 2019: none

    Because operators are implemented in the base class, and being inherited by uint256 and unit512, if a copy or read is made between these types, random memory would be being accessed.

  2. static_assert to ensure width in unit class 6bb970d214
  3. static_assert to ensure width in unit class
    
    Remove trailing white spaces
    9e3ae4e690
  4. Merge remote-tracking branch 'origin/fix-unit-base' into fix-unit-base f5df0c5882
  5. instagibbs commented at 1:57 PM on August 23, 2019: member

    linter is complaining whitespace:

    diff --git a/src/arith_uint256.h b/src/arith_uint256.h
    @@ -111,0 +116,2 @@ public:
    +
    @@ -135,0 +142,2 @@ public:
    +
    ^---- failure generated from test/lint/lint-whitespace.sh
    
  6. shargon commented at 3:01 PM on August 23, 2019: none

    I see, but what spaces? 😕

  7. MarcoFalke commented at 3:08 PM on August 23, 2019: member

    Our ci did not run on this pull request. Anyway, looks like those three commits should be a single one. Could you rebase and/or squash those into one?

  8. shargon commented at 3:25 PM on August 23, 2019: none
  9. shargon closed this on Aug 23, 2019

  10. shargon deleted the branch on Aug 23, 2019
  11. MarcoFalke locked this on Dec 16, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 09:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me