OSDN Git Service

Fix writeByteArray/writeInt32Array size on x64
authorChad Brubaker <cbrubaker@google.com>
Tue, 30 Jun 2015 21:03:55 +0000 (14:03 -0700)
committerChad Brubaker <cbrubaker@google.com>
Tue, 30 Jun 2015 21:50:09 +0000 (14:50 -0700)
commite59cb43edad0eff28a81b18c3c4484442ff680dd
treeeef04a1b4f081422c36d14663a77744f249d4c57
parentfe608c5e3c75714e4aa6c31e048f4a15e4951411
Fix writeByteArray/writeInt32Array size on x64

writeByteArray writes the size using sizeof(size_t), however it is always
read using readInt32(). On devices where sizeof(size_t) != 4 this causes
extra bytes to be written.

BUG: 22204736
Change-Id: I8d4507b6b616857ef5827f1fe9da0907d09abf0e
libs/binder/Parcel.cpp