Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cda5a2b9 authored by Vishnu Nair's avatar Vishnu Nair
Browse files

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
parent d37a1b47
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {