Page MenuHomePhabricator

Fix uninitialized g_connman crash in Shutdown()
ClosedPublic

Authored by Fabien on Jan 23 2019, 13:05.

Details

Summary

Under some circumstances if an error occurs at init, a segfault is
raised at shutdown.

Backport of core PR11326

Test Plan
./src/bitcoind -wallet=/tmp/wallet.dat (the file should not exist)

Check that an error is shown and:

  • before the patch, the app gets a segfault
  • after the patch, the app shuts down properly

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

You should group these backports with the original patch you backport as to not leave master vulnerable.

This revision is now accepted and ready to land.Jan 23 2019, 14:43
This revision was automatically updated to reflect the committed changes.