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 PeripheralRef soundness issue allowing &T. #2919

Merged
merged 1 commit into from
May 7, 2024

Conversation

Dirbaio
Copy link
Member

@Dirbaio Dirbaio commented May 7, 2024

Fix soundness issue introduced in a previous soundness fix #2602 .
PeripheralRef must not implement DerefMut itself, but the blanket impl must still require DerefMut. Otherwise
you can create two instances of a driver on the same uart by using &my_uart.

Fix soundness issue introduced in a previous soundness fix #2602 .
PeripheralRef must not implement DerefMut itself, but the blanket impl must still require DerefMut. Otherwise
you can create two instances of a driver on the same uart by using `&my_uart`.
@Dirbaio Dirbaio enabled auto-merge May 7, 2024 21:27
@Dirbaio Dirbaio added this pull request to the merge queue May 7, 2024
Merged via the queue into main with commit 1166bcd May 7, 2024
9 checks passed
@Dirbaio Dirbaio deleted the fix-peripheralref-deref branch May 7, 2024 21:39
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.

1 participant