mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:50:37 +00:00
wallet: Support quoted external signer arguments #37046
No reviewers
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!37046
Loading…
Reference in a new issue
No description provided.
Delete branch "fix-signer-path-spaces"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The external signer command currently uses subprocess::util::split(), which does not correctly handle quoted arguments or executable paths containing spaces.
As mentioned in #34349, fixing the external signer command parsing was left as a follow-up.
This change introduces support for double-quoted arguments, preserves the existing behavior for repeated whitespace, handles escaped quotes and backslashes within quoted arguments, and rejects unterminated quotes.
The external signer documentation and functional tests have been updated accordingly.
Testing performed on Linux x86_64:
Native Windows testing has not been performed.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
External sites
Reviews
See the guideline and AI policy for information on the review process.
A summary of reviews will appear here.
Conflicts
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
🟠 Minor · Decoded literal quotes corrupt Windows signer arguments
On native Windows, an escaped quote in a whitespace-free signer argument corrupts CRT-style child arguments; no current configuration using this input was found, and native execution was not tested.
Location:
src/external_signer.cpp:28(head).🟠 Minor · Quoted Windows paths need undocumented backslash escaping
Source inspection shows that quoted UNC paths lose a leading backslash and quoted trailing backslashes can cause an unterminated-quote error; native Windows execution was not tested, and signer use on UNC shares is unconfirmed.
Location:
src/external_signer.cpp:29(head).🔵 Suggestion · The
-signerguidance omits the shell-escaping layerNormal POSIX shell quoting removes the double quotes that
SplitSignerCommandneeds, so users need an example that preserves quotes within the-signervalue.Location:
doc/external-signer.md:4(head).🔵 Suggestion · Parser edge cases lack exact argument-vector assertions
The functional tests do not assert exact argument vectors for escapes, empty arguments, mixed quoted tokens, or repeated, leading and trailing separators.
Location:
test/functional/rpc_signer.py:73(head).Reviewed:
331c29b7fd27· Review report · Previous reportspermalink