Page MenuHomePhabricator

Fix ubsan failure in excessiveblock_tests
ClosedPublic

Authored by Fabien on Feb 3 2020, 18:12.

Details

Summary

Introduced in D5136.

Test Plan

Run the UBSAN build.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
fix_excessiveblock_tests
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 9247
Build 16438: Default Diff Build & Tests
Build 16437: arc lint + arc unit

Event Timeline

deadalnix added a subscriber: deadalnix.
deadalnix added inline comments.
src/test/excessiveblock_tests.cpp
60

Note that you could be using ::min() instead of ::max() and you wouldn't need to add 1.

This revision is now accepted and ready to land.Feb 3 2020, 18:30
This revision was automatically updated to reflect the committed changes.