Skip to content

Reading an unreasonably large payloadSize should throw an exception. #1217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lukebakken opened this issue Jun 9, 2022 · 0 comments · Fixed by #1218
Closed

Reading an unreasonably large payloadSize should throw an exception. #1217

lukebakken opened this issue Jun 9, 2022 · 0 comments · Fixed by #1218
Assignees
Milestone

Comments

@lukebakken
Copy link
Collaborator

lukebakken commented Jun 9, 2022

See the following FIXME:

int payloadSize = NetworkOrderDeserializer.ReadInt32(frameHeaderSpan.Slice(2, 4)); // FIXME - throw exn on unreasonable value

The default for this value will be the default max message size for RabbitMQ, 128MiB:

https://github.com/rabbitmq/rabbitmq-server/blob/46c400afcae92bf74ce52d3ff3b53f9836297047/deps/rabbit/Makefile#L118-L119

...and it will be configurable.

Related to #1213

@lukebakken lukebakken added this to the 7.0.0 milestone Jun 9, 2022
@lukebakken lukebakken self-assigned this Jun 9, 2022
lukebakken added a commit that referenced this issue Jun 9, 2022
lukebakken added a commit that referenced this issue Jun 9, 2022
lukebakken added a commit that referenced this issue Jun 9, 2022
lukebakken added a commit that referenced this issue Mar 14, 2025
`AlreadyClosedException` is not consistently thrown.

Related to #1572 #1356 #1217 #1218
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant