Problem: heartbeat command parsing does not check command name size
Solution: treat the first byte of the command body as the size of the command name, rather than as an id, to comply with ZMTP 3.1. This was not an actual problem at runtime since both heartbeat commands have a size of 4, which was treated like an id. But once SUBSCRIBE/UNSUBSCRIBE get implemented it needs to be checked.
Showing
Please
register
or
sign in
to comment