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

(RS-S1011) Detected conversion of *const to *mut #64

Open
yunwei37 opened this issue Mar 9, 2023 · 0 comments
Open

(RS-S1011) Detected conversion of *const to *mut #64

yunwei37 opened this issue Mar 9, 2023 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@yunwei37
Copy link
Member

yunwei37 commented Mar 9, 2023

Description

Converting *const to *mut works in safe code. However, mutating such a pointer can result in undefined behavior. Such situations can only occur in unsafe code, because dereferencing pointers is an unsafe operation.

Occurrences

There are 2 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/eunomia-bpf/wasm-bpf/issue/RS-S1011/occurrences/

@yunwei37 yunwei37 added help wanted Extra attention is needed good first issue Good for newcomers labels Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant