Page MenuHomePhabricator

Block unsafe fs::path std::string conversion calls [7/7]
ClosedPublic

Authored by PiRK on Jan 10 2022, 13:06.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCfeb2a01c3555: Block unsafe fs::path std::string conversion calls [7/7]
Summary

This concludes backport of core#22937 [2g/2g]
https://github.com/bitcoin/bitcoin/pull/22937/commits/6544ea5035268025207d2402db2f7d90fde947a6

This commit disallows passing a std::string to fs::path, building on previous commits which removed all such calls. This is because the behavior of this constructor on windows will be more complicated and can mangle path strings after the transition from boost::filesystem to std::filesystem in core#20744 .

Depends on D10800

Test Plan

ninja all check-all

Diff Detail

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

Event Timeline

PiRK requested review of this revision.Jan 10 2022, 13:06
PiRK retitled this revision from Block unsafe fs::path std::string conversion calls to Block unsafe fs::path std::string conversion calls [7/7].Jan 10 2022, 13:08
This revision is now accepted and ready to land.Jan 11 2022, 10:04