Page MenuHomePhabricator

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

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



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

rABC Bitcoin ABC
Automatic diff as part of commit; lint not applicable.
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.