-
Notifications
You must be signed in to change notification settings - Fork 107
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
fix!(pallet-gear): append outgoing bytes limit to prevent runtime allocator overflow #3743
Conversation
Can you move your PR notes to the code itself @grishasobol ? And resolve the rest |
Ok, some of them truly can be added in code. About possible gear_run panics - I'm thinking what is better to do to prevent them |
@breathx please
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything is good, thanks for your patience!
Requesting changes due to lack of impls and tests for reply_push
, reply_push_input
and reply_commit
We don't need to implement this for replys because this is |
Resolves https://github.com/gear-tech/core-audit/issues/25 and #3718
OutgoingBytesLimit
runtime constant and correspondingoutgoing_bytes_limit
toContextSettings
.MessageContext
now takes in accountoutgoing_bytes_limit
insend_commit
,send_push
,send_push_input
.P.S. special thanks to @gshep @techraed