Skip to content

[#4635] Stop decoding if decoder was removed - #4651

Closed
normanmaurer wants to merge 1 commit into
4.1from
call_decode_remove
Closed

normanmaurer wants to merge 1 commit into
4.1from
call_decode_remove

Conversation

@normanmaurer

Copy link
Copy Markdown
Member

Motivation:

We need to check if this handler was removed before continuing with decoding.
If it was removed, it is not safe to continue to operate on the buffer.

Modifications:

Check if decoder was removed after fire messages through the pipeline.

Result:

No illegal buffer access when decoder was removed.

Motivation:

We need to check if this handler was removed before continuing with decoding.
If it was removed, it is not safe to continue to operate on the buffer.

Modifications:

Check if decoder was removed after fire messages through the pipeline.

Result:

No illegal buffer access when decoder was removed.
@normanmaurer

Copy link
Copy Markdown
Member Author

@nmittler @trustin PTAL.

@trustin I think this will also be a proper fix for the problem you saw when upgrade on the client side (you fixed it by "delay" the removal of the handler)

@nmittler

nmittler commented Jan 4, 2016

Copy link
Copy Markdown
Member

LGTM

@normanmaurer

Copy link
Copy Markdown
Member Author

@lexek verified the fix 👍

@trustin

trustin commented Jan 5, 2016

Copy link
Copy Markdown
Member

LGTM

@normanmaurer

Copy link
Copy Markdown
Member Author

cherry-picked into 4.0 (76ef2aa) and 4.1 (4cdbe39)

@normanmaurer
normanmaurer deleted the call_decode_remove branch January 5, 2016 10:09
@normanmaurer

Copy link
Copy Markdown
Member Author

@nmittler @trustin Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants