Skip to content
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 corrupt clientList bug in TransportArbitrator #199

Merged
merged 3 commits into from
Feb 1, 2022

Conversation

ramlco
Copy link
Contributor

@ramlco ramlco commented Jul 30, 2021

If m_clientList is null and m_clientFreeList has more than one node, m_clientList->m_next will point back to m_clientFreeList. This results in an error in the destructor. Always setting 'info->m_next = m_clientList' fixes the issue

If m_clientList is null and m_clientFreeList has more than one node, m_clientList->m_next will point back to m_clientFreeList.  This results in an error in the destructor.  Always setting 'info->m_next = m_clientList' fixes the issue
@MichalPrincNXP MichalPrincNXP self-requested a review August 4, 2021 11:19
@MichalPrincNXP MichalPrincNXP self-assigned this Aug 4, 2021
@MichalPrincNXP
Copy link
Member

Hello @ramlco , thank for this PR with the bugfix. I am ok with these changes but could you please format the code correctly (see https://github.com/EmbeddedRPC/erpc/wiki/Contributing) - there are tabs in changed lines. And, also could you please rebase to the develop head (it seems failing greetings action blocks consequent Travis build check). Thank you.

Copy link
Member

@Hadatko Hadatko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am approving this PR.
As code wasn't formatted properly so far, we can merge it and format internally or ignore it and do internally. First case sounds better as it should be benefit of owner of the change.

@Hadatko Hadatko added this to the 1.9.1 milestone Jan 21, 2022
Copy link
Member

@Hadatko Hadatko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed indention. So i think it is ready for merge. @MichalPrincNXP

Copy link
Member

@MichalPrincNXP MichalPrincNXP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your effort!

@MichalPrincNXP MichalPrincNXP merged commit 2301f96 into EmbeddedRPC:develop Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

3 participants