Repository navigation
17.16.2 update and add new Memory API Module - #247
Merged
Merged
Conversation
Add new frida-gum Memory module with comprehensive memory manipulation APIs: - Memory::read() - fault-tolerant memory reading - Memory::write() - write bytes to address - Memory::allocate() - allocate memory with protection and alignment - Memory::allocate_near() - allocate near address (useful for relative jumps) - Memory::patch_code() - apply atomic code patches - Memory::protect() - change memory protection - Memory::query_protection() - query current protection - Memory::scan() - pattern scanning - Memory::access_address() - ensure address is accessible This replaces the deprecated Memory::alloc_n_pages() and Memory::free_pages() APIs that were removed in Frida 17.10+. Platform fixes: - Use gum_sys::gsize instead of u64 for 32-bit platform compatibility - Proper pointer casting for all architectures
kkuehl
marked this pull request as draft
July 20, 2026 11:51
Add glib_compat module to handle platform-specific GLib symbol naming: - Linux/FreeBSD: _frida_g_* prefix - Windows/macOS/iOS: g_* direct names This is required by the Memory module for g_free, g_ptr_array_*, etc. Provides unified API across all platforms.
kkuehl
marked this pull request as ready for review
July 20, 2026 12:00
Contributor
Author
|
@s1341 once this merges, I will add new features each version bump to keep the changeset small. |
Contributor
sounds good... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
frida-gum/src/memory.rs, 473 lines):Memory::read()/Memory::write()- fault-tolerant memory operationsMemory::allocate()/Memory::allocate_near()- memory allocation with protectionMemory::patch_code()- atomic code patchingMemory::protect()/Memory::query_protection()- protection managementMemory::scan()- pattern scanningMemory::access_address()- address accessibility checksReplaces deprecated
Memory::alloc_n_pages()andMemory::free_pages()APIs removed in Frida 17.10+.