OSDN Git Service

Don't assume that size_t is 32-bit
authorAshok Bhat <ashok.bhat@arm.com>
Wed, 5 Mar 2014 11:51:15 +0000 (11:51 +0000)
committerAshok Bhat <ashok.bhat@arm.com>
Thu, 6 Mar 2014 12:36:47 +0000 (12:36 +0000)
commite92416dfeb115939231819c5edb593b8bb81cc6d
tree840a79e8183900c88110c4c6995757f43159026f
parent2383f2200ab0c2dbd71708b5c1fb6af98db408fa
Don't assume that size_t is 32-bit

Crypto data was being copied to java jint array in chunks of
size_t. This will not work on LP64 as size_t will be 64-bit.
This patch changes copy to use int32_t chunks instead of size_t.

Change-Id: I75d910a1182ad2f58f432cd172127f048b4c393b
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
media/jni/android_media_MediaExtractor.cpp