Commit 067f937
committed
Add high-level wrappers for some common ptrace routines and mark
`nix::sys::ptrace::ptrace` is unsafe by design. Its incorrect usage may
lead to race conditions or crashes, and according to this post [1]
should be marked unsafe.
Additionally, wrappers with typically Rusty API have been introduced for
some of the common ptrace routines. It is not a complete coverage and
this subject should be revisited in the future.
Some of these are `unsafe` by the sheer specification and have been marked so.nix::sys::ptrace::ptrace as unsafe.1 parent ff99768 commit 067f937
1 file changed
+14
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
| 74 | + | |
74 | 75 | | |
75 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
| |||
202 | 205 | | |
203 | 206 | | |
204 | 207 | | |
205 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
206 | 212 | | |
207 | 213 | | |
208 | 214 | | |
209 | 215 | | |
210 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
211 | 221 | | |
212 | 222 | | |
213 | 223 | | |
| |||
0 commit comments