rabbitmq / rabbitmq-common

Common library used by rabbitmq-server and rabbitmq-erlang-client
Other
66 stars 112 forks source link

Infinite recursion when delivering message with empty binary payload #299

Closed acogoluegnes closed 5 years ago

acogoluegnes commented 5 years ago

See https://groups.google.com/d/msg/rabbitmq-users/txOWyh05GqQ/uRtrYMQZFgAJ to reproduce.

Broker crashes because of an infinite recursion when creating the frames to deliver the message. This happens only with an empty binary payload ([<<>>]), which is easy to create with the management UI. Other clients (e.g. Java client) may create empty list payloads ([]), which doesn't trigger the problem.