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

drivers/slipdev: fix off-by-one error in _recv() [backport 2022.10] #18830

Merged

Conversation

benpicco
Copy link
Contributor

@benpicco benpicco commented Nov 1, 2022

Backport of #18826

Contribution description

This fixes the off-by-one error in SLIP the same way as it was fixed in ethos.

Previously I tried to make SLIP use the chunked ringbuffer to handle this with common code or clean up the driver while fixing the bug, but neither reached consensus.

So this minimal solution should fix the bug while not touching the driver otherwise.

Testing procedure

Issues/PRs references

alternative to #18229, #18066
same as #18823

@benpicco benpicco requested a review from miri64 as a code owner November 1, 2022 09:17
@benpicco benpicco added Area: drivers Area: Device drivers CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Process: release backport Integration Process: The PR is a release backport of a change previously provided to master Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) labels Nov 1, 2022
@benpicco benpicco requested a review from maribu November 1, 2022 09:17
@riot-ci
Copy link

riot-ci commented Nov 1, 2022

Murdock results

✔️ PASSED

bcc2ee7 drivers/slipdev: fix off-by-one error in _recv()

Success Failures Total Runtime
1983 0 1983 06m:41s

Artifacts

This only reflects a subset of all builds from https://ci-prod.riot-os.org. Please refer to https://ci.riot-os.org for a complete build for now.

@maribu maribu enabled auto-merge November 1, 2022 09:40
@maribu maribu merged commit 9e74e4d into RIOT-OS:2022.10-branch Nov 1, 2022
@benpicco benpicco deleted the backport/2022.10/slipdev-off_by_one branch November 1, 2022 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: drivers Area: Device drivers CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Process: release backport Integration Process: The PR is a release backport of a change previously provided to master Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants