diff options
author | Andreas Huber <andih@google.com> | 2010-01-11 13:30:08 -0800 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-01-11 13:30:08 -0800 |
commit | 5ebc8898d765321eafbbb7a12cfa529defcd484a (patch) | |
tree | 6cbac5135bc67c6b5c23675860c778910724890d /media | |
parent | 3b06c9f3dda91dbbf567f3163da1ac9648221f14 (diff) | |
download | frameworks_base-5ebc8898d765321eafbbb7a12cfa529defcd484a.zip frameworks_base-5ebc8898d765321eafbbb7a12cfa529defcd484a.tar.gz frameworks_base-5ebc8898d765321eafbbb7a12cfa529defcd484a.tar.bz2 |
Fix an uninitialized read detected by valgrind. The array to be copied is statically sized and not a c-string.
related-to-bug: 2366619
Diffstat (limited to 'media')
-rw-r--r-- | media/libstagefright/MP3Extractor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/MP3Extractor.cpp b/media/libstagefright/MP3Extractor.cpp index 14e6177..b8e76fd 100644 --- a/media/libstagefright/MP3Extractor.cpp +++ b/media/libstagefright/MP3Extractor.cpp @@ -557,7 +557,7 @@ MP3Source::MP3Source( mStarted(false), mByteNumber(byte_number), mGroup(NULL) { - memcpy (mTableOfContents, table_of_contents, strlen(table_of_contents)); + memcpy (mTableOfContents, table_of_contents, sizeof(mTableOfContents)); } MP3Source::~MP3Source() { |