summaryrefslogtreecommitdiff
path: root/libs/binder/Parcel.cpp
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2019-09-26 16:05:56 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2019-09-26 16:05:56 +0000
commit4f330b8eca915554e9f59c4f8f98ebddbcb81203 (patch)
treef3bec8c308e40c70e526eb22214a7b8308049ddc /libs/binder/Parcel.cpp
parentca5868f8824e4fdd38f19a4e97eb46a14636e93f (diff)
parent6adf33cee0be6d8b7da88fac45f36b6983fedaaa (diff)
Merge "libbinder: Replace abort with LOG_ALWAYS_FATAL"
Diffstat (limited to 'libs/binder/Parcel.cpp')
-rw-r--r--libs/binder/Parcel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp
index ee26997912..a6b41e4b5f 100644
--- a/libs/binder/Parcel.cpp
+++ b/libs/binder/Parcel.cpp
@@ -68,7 +68,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);
}
@@ -295,7 +295,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;
}
@@ -332,7 +332,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;