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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

deadalnix added a subscriber: deadalnix.
deadalnix added inline comments.
src/test/excessiveblock_tests.cpp
60 ↗(On Diff #15971)

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.