Description
In the client in Bytom before 1.0.6, checkTopicRegister in p2p/discover/net.go does not prevent negative idx values, leading to a crash.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/bytom/bytom | < 1.0.6 | 1.0.6 | GHSA-vc3x-gx6c-g99f |
| Go | github.com/bytom/bytom | < 1.0.4-0.20180831054840-1ac3c8ac4f2b | 1.0.4-0.20180831054840-1ac3c8ac4f2b | GO-2021-0079 |