summaryrefslogtreecommitdiff
path: root/Parcel.cpp
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2019-09-26 09:46:06 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-09-26 09:46:06 -0700
commit301ab549eeb039eddab16724f79dc8c13f2aea5e (patch)
tree231939758b0ccae4438dc9851e6249680904ad8e /Parcel.cpp
parent4cccf9b724c23ecb62683db0e0e4d99555f442a9 (diff)
parent5af06db2896eaab520ef91886f35d9560ac648be (diff)
downloadlibhwbinder-301ab549eeb039eddab16724f79dc8c13f2aea5e.tar.gz
Replace abort with LOG_ALWAYS_FATAL am: 0338952431 am: 57ca8c30d4 am: d17c3bae23
am: 5af06db289 Change-Id: I1278acf73af3135da6c47e441cc064a574a8c6d9
Diffstat (limited to 'Parcel.cpp')
-rw-r--r--Parcel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Parcel.cpp b/Parcel.cpp
index 877634c..ec84d42 100644
--- a/Parcel.cpp
+++ b/Parcel.cpp
@@ -67,7 +67,7 @@
static size_t pad_size(size_t s) {
if (s > (std::numeric_limits<size_t>::max() - 3)) {
- abort();
+ LOG_ALWAYS_FATAL("pad size too big %zu", s);
}
return PAD_SIZE_UNSAFE(s);
}
@@ -292,7 +292,7 @@ size_t Parcel::dataAvail() const
{
size_t result = dataSize() - dataPosition();
if (result > INT32_MAX) {
- abort();
+ LOG_ALWAYS_FATAL("result too big: %zu", result);
}
return result;
}
@@ -329,7 +329,7 @@ void Parcel::setDataPosition(size_t pos) const
if (pos > INT32_MAX) {
// don't accept size_t values which may have come from an
// inadvertent conversion from a negative int.
- abort();
+ LOG_ALWAYS_FATAL("pos too big: %zu", pos);
}
mDataPos = pos;