• Overview
  • Docs
  • Luma
  • News
  • Code
  • Contact
FЯIDA
  • Overview
  • Docs
  • Luma
  • News
  • Code
  • Contact
  • All News
  • Frida Releases

Recent Releases

  • Version 17.29.0
  • Version 17.28.1
  • Version 17.28.0
  • Version 17.27.6
  • Version 17.27.5
  • History »

Other News

  • NowSecure Connect 2019
  • Frida presentation at FOSDEM 2016

Frida 17.29.0 Released ∞

release
29 Nov 2026 oleavr

A release for those decoding data with patterns. A decoded value now says whether it is complete, truncated or failed, and why. There is a cheap way to ask only for a value’s size, and a value placed inside a larger buffer can follow pointers to all of it. Two of these change the API, so check your callers. Beyond patterns, @zqxwce added a frida-server package for RootHide jailbreaks, and @kkuehl fixed two more hangs on teardown.

Patterns

Complete, truncated or failed

A PatternValue used to carry a single truncated flag, and dropped any error, so a decode that had failed could pass as clean. It now has a status, one of complete, truncated and failed, and an error holding the message from where it failed. Both cover the value and everything decoded within it: a failure anywhere inside carries up to the root, and outranks truncation. Running out of data is always truncation rather than an error, so an error always means the decode itself failed.

value = module.decode("Packet", data, address)
if value.status == "failed":
    print(value.error)

This replaces truncated, so code reading that property needs updating.

Measuring

PatternModule.measure() decodes just like decode(), but returns only the value itself: its size, status, error and scalar, without fields, elements, formatting or a visualizer. That is for callers that only need to know how large a value is, such as a stream framer deciding where one message ends and the next begins.

size = module.measure("Packet", data, address).size

Values inside a buffer

PatternDecodeOptions gained an offset, which says where in the data the value starts. Hand over the whole buffer along with the offset, and a value that points elsewhere in it can follow those pointers, which it couldn’t when given only its own slice.

value = module.decode("Packet", data, address, offset=64)

call_function()

The pattern and function name now come first in call_function(), so the parameters after them read the same as decode()’s. This is the other change that callers need to adapt to.

Fixes

  • A bitfield is read in its own byte order.
  • A bitfield’s members can be reached through parent.
  • A while array whose condition reads nothing that advances now stops once its data runs out, rather than never ending.
  • Decoding goes on past a placement that is cut off. It is away from the cursor, so what follows doesn’t need its size.
  • A placement that gets decoded again keeps its format, name and color, is the one that gets formatted, and stays attached, so the root’s status follows what it now decodes to.

iOS

@zqxwce added a frida-server package for RootHide. It is published next to our other two iOS packages, with the same binaries, under the iphoneos-arm64e architecture, so that apt on a RootHide device finds it. Thanks!

Teardown

@kkuehl followed up on the hang he fixed in 17.27.5, where the agent’s count of pending calls could wrap below zero. A reply arriving after the connection had closed could still do that, so calls expecting a reply are now tracked by their serial, and each is removed on its reply. He also fixed frida_deinit() blocking when the agent in our own process had delegated its code memory: closing the connection alone didn’t make such an agent unload, so it is now asked to first. Thanks!

Enjoy!

Changelog

  • compiler: Give pattern values a status, and expose their errors, replacing PatternValue.truncated.
  • compiler: Add PatternModule.measure().
  • compiler: Add an offset to PatternDecodeOptions.
  • compiler: Put call_function()’s pattern and function first.
  • compiler: Read bitfield members through parent.
  • patterns: Read a bitfield in its own byte order.
  • patterns: Stop a while array that can never end.
  • patterns: Read a cut-off value as truncation, and carry a value’s error up to the root.
  • patterns: Go on past a cut-off placement.
  • patterns: Format a re-decoded placement itself, re-apply its field attributes, and keep it attached.
  • fruity: Package frida-server for RootHide. Thanks @zqxwce!
  • agent: Track pending calls by serial. Thanks @kkuehl!
  • agent-container: Unload the agent before closing. Thanks @kkuehl!
  • swift: Bind pattern measuring, offsets and value status.

Sponsored by:
NowSecure