-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Potential incorrect type for ptrace requests with musl #744
Comments
While technically a breaking change to fix this, my guess is that it's fine to fix in a point release as it's unlikely to break anyone. |
I'd only expect it to make a cast unnecessary for some users. I'll submit a pull request later today then unless it's already being covered 👍 |
bors
added a commit
that referenced
this issue
Aug 27, 2017
Updated types of PTRACE requests for musl to be consistent. For some reason the type of ptrace request constants in musl change for the register based requests. As they are used in the same way and this doesn't mimic musl this has been changed for consistency and ease of use. First raised in issue #744
Closing this issue as #745 is merged! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For some reason normal ptrace requests i.e. PTRACE_TRACEME are c_int whereas the ptrace requests related to program registers (i.e. PTRACE_GETREGS) are unsigned integers musl mod.rs. Now as all these values are used as the request argument to fn ptrace surely the sign should be consistent?
musl is also the only libc environment which has the difference in signedness which also doesn't seem to be mimicking musl itself ptrace.h musl
The text was updated successfully, but these errors were encountered: