Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 874c80fd authored by Dichen Zhang's avatar Dichen Zhang
Browse files

Fix use-after-free bug in RemoteDataSource class

"getSize()", "getIMemory()", "readAt()" and so on can be called after
mSource/mMemory is released from other thread, which can result in
use-after-free problem.
Solve by adding lock and check before using/changing.

Bug: 151642837
Test: run poc in bug report.
Change-Id: Id37a6bfc38e290a67575afc31c112d7095362335
parent ea1766b0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment