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

Commit 643817df authored by Yu-Ting Tseng's avatar Yu-Ting Tseng
Browse files

Abort on recursive processPostWriteDerefs

In certain cases a binder object can be de-referenced an extra time due
to processPostWriteDerefs calling itself recursively. This caused double
decStrong calls, which caused crash.

With this change, processPostWriteDerefs instead crashes when called
recursively.

This change is controlled by
RELEASE_LIBBINDER_FIX_RECURSIVE_DOUBLE_DEREFS build flag. By default it
is off.

Flag: build.RELEASE_LIBBINDER_FIX_RECURSIVE_DOUBLE_DEREFS
Bug: 430341301
Test: atest binderLibTest
Change-Id: I2bc81e53cb1adb242c2a6a8b54c25c9914fc39bb
parent b1e2cb33
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