diff options
author | Glenn Kasten <gkasten@google.com> | 2012-01-04 12:38:13 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-01-11 12:27:41 -0800 |
commit | 83bc7f3cf78b28a818417f40a4f0c00593993366 (patch) | |
tree | 92870fd797bc4cc281c60e463848e27e7f16b1ea /media/libmedia/MediaScannerClient.cpp | |
parent | 3bba0e0a60b15895134bc2c731d21fd7ebd28784 (diff) | |
download | frameworks_av-83bc7f3cf78b28a818417f40a4f0c00593993366.zip frameworks_av-83bc7f3cf78b28a818417f40a4f0c00593993366.tar.gz frameworks_av-83bc7f3cf78b28a818417f40a4f0c00593993366.tar.bz2 |
libmedia new can't fail on Android
Change-Id: Ie79dd5abb8078b35474bf0f1b3a6ff994a3a3360
Diffstat (limited to 'media/libmedia/MediaScannerClient.cpp')
-rw-r--r-- | media/libmedia/MediaScannerClient.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/media/libmedia/MediaScannerClient.cpp b/media/libmedia/MediaScannerClient.cpp index 40b8188..9fe1820 100644 --- a/media/libmedia/MediaScannerClient.cpp +++ b/media/libmedia/MediaScannerClient.cpp @@ -173,6 +173,7 @@ void MediaScannerClient::convertValues(uint32_t encoding) const char* source = mValues->getEntry(i); int targetLength = len * 3 + 1; char* buffer = new char[targetLength]; + // don't normally check for NULL, but in this case targetLength may be large if (!buffer) break; char* target = buffer; |