Page MenuHomePhabricator

[UBSAN] Fix UBSAN issue in test_bitcon_main.cpp
ClosedPublic

Authored by Fabien on Jan 7 2020, 18:10.

Details

Summary

This diff fixes an UBSAN issue introduced in D4841:

  • It moves the master_test_suite_t reference to a variable;
  • It adds an exception for the root cause of the UBSAN failure

Note that for some reason, this error only occurs with Clang < 9.

Test Plan

Run the build-ubsan configuration on CI.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision is now accepted and ready to land.Jan 7 2020, 18:14