Fix an uninitialized read detected by valgrind. The array to be copied is statically sized and not a c-string.
related-to-bug: 2366619
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user