Commit e5a17398 authored by Mukesh Pilaniya's avatar Mukesh Pilaniya Committed by Treehugger Robot
Browse files

ANDROID: gunyah: Fix use-after-free in gunyah_vm_clean_resources()



The gunyah_vm_clean_resources() function was freeing resources without
removing them from the ghvm->resources list, leaving dangling pointers
that could lead to use-after-free.

Fix this by removing each resource from the list before freeing it to
ensure lists are empty after cleanup.

Bug: 436769530
Change-Id: I16bb2a73dae66cdef9e62f65b93d1487e32a92ce
Signed-off-by: default avatarMukesh Pilaniya <quic_mpilaniy@quicinc.com>
parent 886d2f37
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment