summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Vishnu Nair <vishnun@google.com> 2020-11-18 17:11:49 -0800
committer Vishnu Nair <vishnun@google.com> 2020-11-19 01:13:23 +0000
commitcda5a2b98f468bf0cd41bde0cb9869696e364414 (patch)
tree108ea1018e1b6f3ef95bf5379b5a3b5d2e5ab880
parentd37a1b47f0a39607c2033c331e198160798209c4 (diff)
binder: fix signedness error in printHexData
Fixes: 173657790 Test: adb shell su root service call SurfaceFlinger 1033 i32 31 & check libbinder does not crash Change-Id: I35610b54ff45d5f5a18d3cf364717c54d1739c83
-rw-r--r--libs/binder/Debug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/binder/Debug.cpp b/libs/binder/Debug.cpp
index da342ff210..3a620590ab 100644
--- a/libs/binder/Debug.cpp
+++ b/libs/binder/Debug.cpp
@@ -208,7 +208,7 @@ void printHexData(int32_t indent, const void *buf, size_t length,
}
for (offset = 0; ; offset += bytesPerLine, pos += bytesPerLine) {
- size_t remain = length;
+ ssize_t remain = length;
char* c = buffer;
if (!oneLine && !cStyle) {