GLib 2.68 deprecates g_memdup() in favour of g_memdup2() as the former was using a guint second argument which could lead to integer overflows (gsize should be used instead). Change-Id: Iaa3e3b1ecaab00d1ac887c915397b15b7204dd11