8000 17.16.2 update and add new Memory API Module by kkuehl · Pull Request #247 · frida/frida-rust · GitHub
[go: up one dir, main page]

Skip to content

17.16.2 update and add new Memory API Module - #247

Merged
s1341 merged 3 commits into
frida:mainfrom
kkuehl:kkuehl/17.16.2-update
Jul 28, 2026
Merged

s1341 merged 3 commits into
frida:mainfrom
kkuehl:kkuehl/17.16.2-update

Conversation

@kkuehl
@kkuehl kkuehl commented Jul 20, 2026 •
Copy link
Copy Markdown
Contributor
  • Version bump: 17.16.1 → 17.16.2
  • New Memory module (frida-gum/src/memory.rs, 473 lines):
    • Memory::read() / Memory::write() - fault-tolerant memory operations
    • Memory::allocate() / Memory::allocate_near() - memory allocation with protection
    • Memory::patch_code() - atomic code patching
    • Memory::protect() / Memory::query_protection() - protection management
    • Memory::scan() - pattern scanning
    • Memory::access_address() - address accessibility checks

Replaces deprecated Memory::alloc_n_pages() and Memory::free_pages() APIs removed in Frida 17.10+.

kkuehl added 2 commits July 20, 2026 06:44
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
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
kkuehl marked this pull request as ready for review July 20, 2026 12:00
@kkuehl kkuehl changed the title Kkuehl/17.16.2 update 17.16.2 update and add new Memory API Module Jul 20, 2026
@kkuehl
kkuehl commented Jul 23, 2026
Copy link
Copy Markdown
Contributor Author

@s1341 once this merges, I will add new features each version bump to keep the changeset small.

@s1341
s1341 merged commit b7e6963 into frida:main Jul 28, 2026
16 checks passed
@s1341
s1341 commented Jul 28, 2026
Copy link
Copy Markdown
Contributor

@s1341 once this merges, I will add new features each version bump to keep the changeset small.

sounds good...

@kkuehl
kkuehl deleted the kkuehl/17.16.2-update branch November 23, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0