Revert "binder: fix UAF caused by offsets overwrite"
This reverts commit 5a900b02fb
.
This commit is contained in:
parent
62198fea21
commit
fa7cf55b44
1 changed files with 0 additions and 1 deletions
|
@ -3552,7 +3552,6 @@ static void binder_transaction(struct binder_proc *proc,
|
||||||
*/
|
*/
|
||||||
copy_size = object_offset - user_offset;
|
copy_size = object_offset - user_offset;
|
||||||
if (copy_size && (user_offset > object_offset ||
|
if (copy_size && (user_offset > object_offset ||
|
||||||
object_offset > tr->data_size ||
|
|
||||||
binder_alloc_copy_user_to_buffer(
|
binder_alloc_copy_user_to_buffer(
|
||||||
&target_proc->alloc,
|
&target_proc->alloc,
|
||||||
t->buffer, user_offset,
|
t->buffer, user_offset,
|
||||||
|
|
Loading…
Add table
Reference in a new issue