commit | 5fce0542b6b822b6a79fc4cb0e12db1eb7d41f6c | [log] [tgz] |
---|---|---|
author | Sergio Giro <sgiro@google.com> | Tue Jun 28 18:02:29 2016 +0100 |
committer | Sergio Giro <sgiro@google.com> | Thu Jul 14 12:34:30 2016 +0000 |
tree | 2338a91503f2377f73db3b1bcabbf2ef14a28637 | |
parent | 311002936e97a36b1ce4812ed690d6cf9c2a75c4 [diff] |
DO NOT MERGE libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8 Inconsistent behaviour between utf16_to_utf8 and utf16_to_utf8_length is causing a heap overflow. Correcting the length computation and adding bound checks to the conversion functions. (cherry picked from commit c4966a363e46d2e1074d1a365e232af0dcedd6a1) Bug: 29250543 Change-Id: Ia2d6a550f5594280505fb0835c752e53898700ed