frida 17.2.8 → 17.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/src/frida.js +4 -0
- package/package.json +1 -1
- package/src/frida_bindgen/__pycache__/__init__.cpython-312.pyc +0 -0
- package/src/frida_bindgen/__pycache__/__main__.cpython-312.pyc +0 -0
- package/src/frida_bindgen/__pycache__/cli.cpython-312.pyc +0 -0
- package/src/frida_bindgen/__pycache__/codegen.cpython-312.pyc +0 -0
- package/src/frida_bindgen/__pycache__/customization.cpython-312.pyc +0 -0
- package/src/frida_bindgen/__pycache__/loader.cpython-312.pyc +0 -0
- package/src/frida_bindgen/__pycache__/model.cpython-312.pyc +0 -0
- package/src/frida_bindgen/assets/codegen_helpers.c +5 -8
- package/src/frida_bindgen/assets/codegen_types.h +1 -0
- package/src/frida_bindgen/customization.py +5 -0
- package/subprojects/frida-core.wrap +1 -1
package/build/src/frida.js
CHANGED
|
@@ -484,6 +484,10 @@ export const LogLevel = binding.LogLevel;
|
|
|
484
484
|
if (cwd !== undefined) {
|
|
485
485
|
options.cwd = cwd;
|
|
486
486
|
}
|
|
487
|
+
const stdio = opts.stdio;
|
|
488
|
+
if (stdio !== undefined) {
|
|
489
|
+
options.stdio = stdio;
|
|
490
|
+
}
|
|
487
491
|
options.aux = Object.fromEntries(Object.entries(opts).filter(([k, v]) => !STANDARD_SPAWN_OPTION_NAMES.has(k)));
|
|
488
492
|
}
|
|
489
493
|
const result = await this._spawn(program, options, cancellable);
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1742,16 +1742,12 @@ fdn_signal_closure_deliver (napi_env env,
|
|
|
1742
1742
|
FdnSignalClosureMessageDestroy * d = &message->payload.destroy;
|
|
1743
1743
|
napi_value js_sig;
|
|
1744
1744
|
FdnSignal * sig;
|
|
1745
|
-
FdnSignalBehavior behavior;
|
|
1746
1745
|
|
|
1747
1746
|
napi_get_reference_value (env, d->js_sig, &js_sig);
|
|
1748
1747
|
napi_unwrap (env, js_sig, (void **) &sig);
|
|
1749
|
-
behavior = sig->behavior;
|
|
1750
1748
|
|
|
1751
1749
|
napi_delete_reference (env, d->handler);
|
|
1752
1750
|
napi_delete_reference (env, d->js_sig);
|
|
1753
|
-
if (behavior == FDN_SIGNAL_KEEP_ALIVE)
|
|
1754
|
-
napi_unref_threadsafe_function (env, d->tsfn);
|
|
1755
1751
|
napi_release_threadsafe_function (d->tsfn, napi_tsfn_abort);
|
|
1756
1752
|
|
|
1757
1753
|
break;
|
|
@@ -1814,7 +1810,7 @@ fdn_keep_alive_until (napi_env env,
|
|
|
1814
1810
|
context->handle = g_object_ref (handle);
|
|
1815
1811
|
context->signal_handler_id = 0;
|
|
1816
1812
|
|
|
1817
|
-
|
|
1813
|
+
napi_create_threadsafe_function (env, NULL, NULL, fdn_utf8_to_value (env, "FridaKeepAlive"), 0, 1, NULL, NULL, context, fdn_keep_alive_on_tsfn_invoke, &context->tsfn);
|
|
1818
1814
|
|
|
1819
1815
|
napi_add_finalizer (env, js_object, context, fdn_keep_alive_on_finalize, NULL, NULL);
|
|
1820
1816
|
|
|
@@ -1863,7 +1859,7 @@ fdn_keep_alive_schedule_cleanup (FdnKeepAliveContext * context)
|
|
|
1863
1859
|
if (fdn_in_cleanup)
|
|
1864
1860
|
return;
|
|
1865
1861
|
|
|
1866
|
-
napi_call_threadsafe_function (
|
|
1862
|
+
napi_call_threadsafe_function (context->tsfn, NULL, napi_tsfn_blocking);
|
|
1867
1863
|
}
|
|
1868
1864
|
|
|
1869
1865
|
static void
|
|
@@ -1872,7 +1868,7 @@ fdn_keep_alive_on_tsfn_invoke (napi_env env,
|
|
|
1872
1868
|
void * context,
|
|
1873
1869
|
void * data)
|
|
1874
1870
|
{
|
|
1875
|
-
FdnKeepAliveContext * ctx =
|
|
1871
|
+
FdnKeepAliveContext * ctx = context;
|
|
1876
1872
|
|
|
1877
1873
|
if (ctx->signal_handler_id != 0)
|
|
1878
1874
|
{
|
|
@@ -1882,7 +1878,8 @@ fdn_keep_alive_on_tsfn_invoke (napi_env env,
|
|
|
1882
1878
|
g_object_unref (ctx->handle);
|
|
1883
1879
|
ctx->handle = NULL;
|
|
1884
1880
|
|
|
1885
|
-
|
|
1881
|
+
napi_release_threadsafe_function (ctx->tsfn, napi_tsfn_abort);
|
|
1882
|
+
ctx->tsfn = NULL;
|
|
1886
1883
|
}
|
|
1887
1884
|
|
|
1888
1885
|
if (g_atomic_int_dec_and_test (&ctx->ref_count))
|
|
@@ -388,6 +388,11 @@ if (opts !== undefined) {
|
|
|
388
388
|
options.cwd = cwd;
|
|
389
389
|
}
|
|
390
390
|
|
|
391
|
+
const stdio = opts.stdio;
|
|
392
|
+
if (stdio !== undefined) {
|
|
393
|
+
options.stdio = stdio;
|
|
394
|
+
}
|
|
395
|
+
|
|
391
396
|
options.aux = Object.fromEntries(Object.entries(opts).filter(([k, v]) => !STANDARD_SPAWN_OPTION_NAMES.has(k)));
|
|
392
397
|
}
|
|
393
398
|
""",
|