ipfs swarm limit all: returns empty "" Service and Protocol name #9577
Labels
kind/bug
A bug in existing code (including security flaws)
P1
High: Likely tackled by core team if no one steps up
topic/resource-manager
Issues related to Swarm.ResourceMgr (resource manager)
This is a potential source of bugs due to
val != ""
checks returning invalid result.To reproduce, run node for a while, then inspect the output of
ipfs swarm limit all
.At some point, you will see protocol and service named
""
(empty string).I think I've seen error about empty PeerID suring
--reset
at some point too, but was not able to reproduce.Could be a bug, or could be a malicious service that uses zero-length protocol to stay hidden.
Either way, we should not use "" and have "(empty)" or something, because "" leads to bugs.
cc #9417 (but not a hard blocker, we can fix this in 0.19)
The text was updated successfully, but these errors were encountered: