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

Skip to content
Commit 9fc38626 authored by wangjing's avatar wangjing
Browse files

libandroidfw: Fatal exception of dlfree often causes the system crashed

When the function 'getBuffer' are called at the same time by the threads,
mZipInflater will be 'delete' twice if mZipInflater isn't NULL,
that is 'mZipInflater = NULL' has not be reached,
at this time it will cause system server crashed.

Add AutoMutex at the beginning of the function to avoid getBuffer to
be called at the same time.

CRs-Fixed: 812950
Change-Id: I283b43a01b97ae6a149749ff2186efda9df4dc42
parent e4d591e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment