mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-11 05:03:16 +01:00
65e78bda7ctest: Invalid label name coverage (Aurèle Oulès)552b51e682refactor: Add sanity checks in LabelFromValue (Aurèle Oulès)67e7ba8e1arpc: Sanitize label name in various RPCs (Aurèle Oulès) Pull request description: The following RPCs did not sanitize the optional label name: - importprivkey - importaddress - importpubkey - importmulti - importdescriptors - listsinceblock Thus is was possible to import an address with a label `*` which should not be possible. The wildcard label is used for backwards compatibility in the `listtransactions` rpc. I added test coverage for these RPCs. ACKs for top commit: ajtowns: ACK65e78bda7cachow101: ACK65e78bda7cfurszy: diff ACK65e78bdstickies-v: re-ACK65e78bda7ctheStack: re-ACK65e78bda7cTree-SHA512: ad99f2824d4cfae352166b76da4ca0069b7c2eccf81aaa0654be25bbb3c6e5d6b005d93960f3f4154155f80e12be2d0cebd5529922ae3d2a36ee4eed82440b31
9.9 KiB
Executable File
9.9 KiB
Executable File