diff options
author | 2020-11-18 17:11:49 -0800 | |
---|---|---|
committer | 2020-11-19 01:13:23 +0000 | |
commit | cda5a2b98f468bf0cd41bde0cb9869696e364414 (patch) | |
tree | 108ea1018e1b6f3ef95bf5379b5a3b5d2e5ab880 /libs/binder/Debug.cpp | |
parent | d37a1b47f0a39607c2033c331e198160798209c4 (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
Diffstat (limited to 'libs/binder/Debug.cpp')
-rw-r--r-- | libs/binder/Debug.cpp | 2 |
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) { |