Page MenuHomePhabricator

tests: Abort if malloc() fails during context cloning tests
ClosedPublic

Authored by deadalnix on Sun, Sep 27, 22:44.

Details

Summary

Found by the clang static analyzer.

This is the worst true positive that it found. I feel somewhat proud.

This is a backport of libsecp256k1 PR774

Test Plan
ninja check-secp256k1

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

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

This revision is now accepted and ready to land.Sun, Sep 27, 23:06
This revision was landed with ongoing or failed builds.Sun, Sep 27, 23:08
This revision was automatically updated to reflect the committed changes.