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

Commit a13a7622 authored by Steven Moreland's avatar Steven Moreland
Browse files

libbinder: keep uninit descriptor empty

Java users creating custom binder interfaces may
rely on empty descriptors.

Bug: 278655444
Test: binderAllocationLimits
Change-Id: I8bba68a3906517dff060853fc6224b5b5d7d37ab
Merged-In: I8bba68a3906517dff060853fc6224b5b5d7d37ab
parent 39f3f87a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ std::atomic_bool BpBinder::sCountByUidEnabled(false);
binder_proxy_limit_callback BpBinder::sLimitCallback;
bool BpBinder::sBinderProxyThrottleCreate = false;

static StaticString16 kDescriptorUninit(u"<uninit descriptor>");
static StaticString16 kDescriptorUninit(u"");

// Arbitrarily high value that probably distinguishes a bad behaving app
uint32_t BpBinder::sBinderProxyCountHighWatermark = 2500;