We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9e22d9c + 86b14cd commit b773387Copy full SHA for b773387
libs/binder/Parcel.cpp
@@ -1047,10 +1047,11 @@ int32_t Parcel::readExceptionCode() const
1047
{
1048
int32_t exception_code = readAligned<int32_t>();
1049
if (exception_code == EX_HAS_REPLY_HEADER) {
1050
+ int32_t header_start = dataPosition();
1051
int32_t header_size = readAligned<int32_t>();
1052
// Skip over fat responses headers. Not used (or propagated) in
1053
// native code
- setDataPosition(dataPosition() + header_size);
1054
+ setDataPosition(header_start + header_size);
1055
// And fat response headers are currently only used when there are no
1056
// exceptions, so return no error:
1057
return 0;
0 commit comments