libbinder: restartWrite abort out of memory

Most code in Android and indeed in libbinder will
abort in this case. Since setData is underspecified,
we should probably start the process of removing all
the users of it (AIDL does not use it). However,
until it can be removed, it's safer to abort here
than risk mObjects is referenced in an invalid state
from here on.

Bug: 328177618
Test: N/A
Change-Id: Ia36303e1f9bdc91d37943aa106bd832166b91e28
diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp
index c1770b3..2a3ab74 100644
--- a/libs/binder/Parcel.cpp
+++ b/libs/binder/Parcel.cpp
@@ -2932,6 +2932,7 @@
 
     uint8_t* data = reallocZeroFree(mData, mDataCapacity, desired, mDeallocZero);
     if (!data && desired > mDataCapacity) {
+        LOG_ALWAYS_FATAL("out of memory");
         mError = NO_MEMORY;
         return NO_MEMORY;
     }