frida / frida-gum

Cross-platform instrumentation and introspection library written in C
https://frida.re
Other
753 stars 245 forks source link

Add Memory.queryProtection() #779

Closed mrmacete closed 8 months ago

mrmacete commented 9 months ago

This change adds gum_memory_query_protection which takes an address and returns the current protection for the page which contains it.

It is accessible from js bindings through Memory.queryProtection().

On the Darwin backend it's a thin wrapper on top of gum_darwin_query_protection, on all other platforms it relies instead on the respective private implementations of gum_memory_get_protection.

oleavr commented 8 months ago

CI is finally in better shape, sorry it took so long! :sweat_smile: Only one style issue left and this is ready to merge :rocket: