Skip to content

Commit b773387

Browse files
Jean-Baptiste Queruandroid code review
authored andcommitted
Merge "Aligning native Parcel implementation to Java."
2 parents 9e22d9c + 86b14cd commit b773387

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libs/binder/Parcel.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,10 +1047,11 @@ int32_t Parcel::readExceptionCode() const
10471047
{
10481048
int32_t exception_code = readAligned<int32_t>();
10491049
if (exception_code == EX_HAS_REPLY_HEADER) {
1050+
int32_t header_start = dataPosition();
10501051
int32_t header_size = readAligned<int32_t>();
10511052
// Skip over fat responses headers. Not used (or propagated) in
10521053
// native code
1053-
setDataPosition(dataPosition() + header_size);
1054+
setDataPosition(header_start + header_size);
10541055
// And fat response headers are currently only used when there are no
10551056
// exceptions, so return no error:
10561057
return 0;

0 commit comments

Comments
 (0)