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

gateway: Fix Node handling and ECUid checks #429

Merged

Conversation

andreirusu96
Copy link
Contributor

Reset Receiver at connection close to prevent corruption: a partial log may be received from a Node, but in case there is an ECUid mismatch, the socket will be closed and that log will never be completed corrupting the receiver.
Prevent out of bounds reads
Fix connection select when processing passive node messages: fd's can use the same value for a new connection if a previous connection is closed so we need to also select based on connection status

Signed-off-by: Andrei-Mircea Rusu andrei-mircea.rusu@continental-corporation.com

Reset Receiver at connection close to prevent corruption
Prevent out of bounds reads
Fix connection select when processing passive node messages

Signed-off-by: Andrei-Mircea Rusu <andrei-mircea.rusu@continental-corporation.com>
Copy link
Collaborator

@lvklevankhanh lvklevankhanh left a comment

Choose a reason for hiding this comment

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

Look good to me.

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 this pull request may close these issues.

None yet

2 participants