Page MenuHomePhabricator

Fix signed shift by 31 bits
ClosedPublic

Authored by jasonbcox on Aug 6 2020, 17:00.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABC6ddc183e2b48: Fix signed shift by 31 bits
Summary

Shifting a signed integer by 31 bits is undefined behavior.

Test Plan
arc lint src/test/op_reversebytes_tests.cpp

Diff Detail

Repository
rABC Bitcoin ABC
Branch
op-rev-cppcheck
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 12321
Build 24838: Build Diffbuild-without-wallet · build-diff · build-clang-tidy · build-clang-10
Build 24837: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Aug 6 2020, 17:27
This revision was automatically updated to reflect the committed changes.