summaryrefslogtreecommitdiff
path: root/docs/html/sdk/api_diff/11
diff options
context:
space:
mode:
authorJake Hamby <jhamby@google.com>2012-08-28 20:11:34 -0700
committerThe Android Automerger <android-build@android.com>2012-08-30 12:10:04 -0700
commitdba8a81d935cd5647343d3fd8341c0ed159c87b5 (patch)
tree84cf7a911717034e1d3505ed5666e12549c7d8a5 /docs/html/sdk/api_diff/11
parentc56789731fd81144aad48199ded09af6f8de7dd1 (diff)
Fix CDMA decoding of multipart UTF-16 SMS messages.
Recent changes to support CMAS over CDMA introduced a bug causing an exception to be thrown when decoding multipart UTF-16 encoded messages. This change fixes the exception by correctly subtracting the header size from the number of bytes to decode. It also adds more robust error handling to try to decode the maximum length possible instead of throwing an exception if the length is still larger than the user data length after subtracting the header. This also fixes a bug in the encoder, which was padding the UTF-16 user data to 16-bit alignment, which is incorrect (should be padded to an 8-bit boundary). The code happened to work because we always generated a UDH that was an even number of bytes (including length) so the padding was a no-op. The decoder works correctly. Bug: 6939151 Change-Id: Iba9e7156bd7df94e972963959a7ce1c78464f7f5
Diffstat (limited to 'docs/html/sdk/api_diff/11')
0 files changed, 0 insertions, 0 deletions