diff options
author | Steven Moreland <smoreland@google.com> | 2019-09-26 09:46:06 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-09-26 09:46:06 -0700 |
commit | 301ab549eeb039eddab16724f79dc8c13f2aea5e (patch) | |
tree | 231939758b0ccae4438dc9851e6249680904ad8e /Parcel.cpp | |
parent | 4cccf9b724c23ecb62683db0e0e4d99555f442a9 (diff) | |
parent | 5af06db2896eaab520ef91886f35d9560ac648be (diff) | |
download | libhwbinder-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.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |