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/ethos: Fix off-by-one bug [backport 2022.10] #18831

Merged

Conversation

benpicco
Copy link
Contributor

@benpicco benpicco commented Nov 1, 2022

Backport of #18823

The ethernet over serial driver _recv function checks the buffer size after writing the data.
To fix this I moved the bounds check before the function writing to the buffer.

@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 review from miri64 and maribu November 1, 2022 09:17
@riot-ci
Copy link

riot-ci commented Nov 1, 2022

Murdock results

FAILED

8aa4e2a drivers/ethos: Fix off-by-one in ETHOS driver

Build failures (1)
Application Target Toolchain Runtime (s) Worker
tests/gnrc_rpl native gnu 54.74 beast

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.

@leandrolanzieri leandrolanzieri added this to the Release 2022.10 milestone Nov 1, 2022
@maribu maribu force-pushed the backport/2022.10/master branch from c1c9a13 to 8aa4e2a Compare November 2, 2022 07:55
@leandrolanzieri leandrolanzieri merged commit bf7e4f6 into RIOT-OS:2022.10-branch Nov 2, 2022
@benpicco benpicco deleted the backport/2022.10/master branch November 2, 2022 11:01
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.

5 participants