use g_memdup2()

This commit is contained in:
Christian Hergert
2021-02-23 15:38:45 -08:00
parent 843585e00d
commit b77523eb3d
7 changed files with 8 additions and 8 deletions

View File

@ -328,7 +328,7 @@ get_vdso_bytes (size_t *length)
* wrapper never returned that address. But since it
* is a legal mapping, it is legal to read it.
*/
bytes = g_memdup ((uint8_t *)start, n_bytes);
bytes = g_memdup2 ((uint8_t *)start, n_bytes);
has_data = TRUE;
}