Protection resolves the memory protection of the pages within the region that contains the frame return address.
(proc windows.Handle)
| 130 | // of the pages within the region that contains the |
| 131 | // frame return address. |
| 132 | func (f *Frame) Protection(proc windows.Handle) string { |
| 133 | if f.Addr.InSystemRange() { |
| 134 | return "" |
| 135 | } |
| 136 | r := va.VirtualQuery(proc, f.Addr.Uint64()) |
| 137 | if r == nil { |
| 138 | return "?" |
| 139 | } |
| 140 | return r.ProtectMask() |
| 141 | } |
| 142 | |
| 143 | // CallsiteAssembly decodes the callsite trailing/leading |
| 144 | // bytes depending on the value of the `leading` argument. |
no test coverage detected