Sanitize port in addpeeraddress()#23679
Conversation
Based on reading few posts like https://softwareengineering.stackexchange.com/questions/280648/why-is-negative-zero-important it could be an issue in some cases @amadeuszpawlik I tried using port Concept ACK for this PR and maybe we need to make changes for few other RPC |
|
@prayank23 good find with My question still stands, is modifying |
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsNo conflicts as of last run. |
0f72ddf to
30c20e1
Compare
30c20e1 to
324b4f7
Compare
- Ensures port sanitization in `addpeeraddress()` - Adds test to check for invalid port values
324b4f7 to
ada8358
Compare
ada8358 Sanitize port in `addpeeraddress()` (amadeuszpawlik) Pull request description: In connection to bitcoin#22087, it has been [pointed out](bitcoin#22087 (review)) that `addpeeraddress` needs to get its port-value sanitized. ACKs for top commit: fanquake: ACK ada8358 Tree-SHA512: 48771cd4f6940aa7840fa23488565c09dea86bd5ec5a5a1fc0374afb4857aebcd2a1f51e2d4cb7348460e0ad9793dc5d2962df457084ed2b8d8142cae650003f
In connection to #22087, it has been pointed out that
addpeeraddressneeds to get its port-value sanitized.