Revert "binder: fix UAF caused by offsets overwrite"

This reverts commit 5a900b02fb.
This commit is contained in:
Ksawlii 2024-11-24 00:23:38 +01:00
parent 62198fea21
commit fa7cf55b44

View file

@ -3552,7 +3552,6 @@ static void binder_transaction(struct binder_proc *proc,
*/
copy_size = object_offset - user_offset;
if (copy_size && (user_offset > object_offset ||
object_offset > tr->data_size ||
binder_alloc_copy_user_to_buffer(
&target_proc->alloc,
t->buffer, user_offset,