summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/foundation/AString.cpp
Commit message (Collapse)AuthorAgeFilesLines
* am 474038ae: am 27158eb5: Merge "AArch64: AString::append for longs and ↵Nick Kralevich2014-04-211-21/+21
|\ | | | | | | | | | | | | pointers" * commit '474038aef32f47d080567e8519d916b069a4f707': AArch64: AString::append for longs and pointers
| * AArch64: AString::append for longs and pointersMarcus Oakland2014-04-151-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The AString::append methods for long, unsigned long and void * pointers were using char arrays of 16 elements, which were not long enough for 64-bit longs and pointers in __LP64__ systems. This resulted in "FORTIFY_SOURCE: vsprintf: prevented write past end of buffer. Calling abort()." when the android.media.cts.DecoderTest#testFlush CTS test was run. The AString::append methods that were using sprintf have been modifed to use snprintf instead, taking the sizeof the "s" array (which has been made 32 char without conditional compilation for __LP64__ where appropriate), and checking the return value to ensure that the string has not been truncated. After this change and changes to the types of OMX_U32 and OMX_S32 in the frameworks/native/include/media/openmax/OMX_Types.h header file, the android.media.cts.DecoderTest#testFlush CTS test passes. Change-Id: I76d897373473c82f52986f43a15b050b844a370a Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
* | stagefright: add AString constructor from String8Lajos Molnar2014-04-041-0/+8
|/ | | | Change-Id: I85b37b6dee4ea9d5f7f1c1a40ff405a01a0c67f1
* Provisional support for secure decryption of media streams.Andreas Huber2012-03-261-0/+10
| | | | Change-Id: Ib3982a9c960bfdb0cb7e1b174440b141b194cfbe
* Initial checkin of "foundation" library for future stagefright development.Andreas Huber2010-06-071-0/+331
Change-Id: I11714dcaa647d0437a13e4c5b953b35e712da8f3