Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

result = gum_memory_read result is null #729

Open
forgottor opened this issue Mar 2, 2023 · 0 comments
Open

result = gum_memory_read result is null #729

forgottor opened this issue Mar 2, 2023 · 0 comments

Comments

@forgottor
Copy link

forgottor commented Mar 2, 2023

in frida-gum/tests/core/memory.c

MEMORY_TESTCASE (read_from_valid_address_should_succeed)
{
guint8 magic[2] = { 0x13, 0x37 };
gsize n_bytes_read;
guint8 * result;

result = gum_memory_read (GUM_ADDRESS (magic), sizeof (magic), &n_bytes_read);
g_assert (result != NULL);

g_assert_cmpuint (n_bytes_read, ==, sizeof (magic));

g_assert_cmphex (result[0], ==, magic[0]);
g_assert_cmphex (result[1], ==, magic[1]);

g_free (result);
}

@forgottor forgottor changed the title candidate function not viable: no known conversion from 'GumAddress' (aka 'unsigned long') to 'gconstpointer' (aka 'const void *') for 1st argument result = gum_memory_read result is null Mar 2, 2023
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

No branches or pull requests

1 participant