mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 21:14:23 -04:00
MP4: Detect atoms with invalid length or type (#1077)
This commit is contained in:
Binary file not shown.
@ -575,7 +575,10 @@ public:
|
||||
void testFuzzedFile()
|
||||
{
|
||||
MP4::File f(TEST_FILE_PATH_C("infloop.m4a"));
|
||||
CPPUNIT_ASSERT(f.isValid());
|
||||
// The file has an invalid atom length of 2775 in the last atom
|
||||
// ("free", offset 0xc521, 00000ad7 66726565), whereas the remaining file
|
||||
// length is 2727 bytes, therefore the file is now considered invalid.
|
||||
CPPUNIT_ASSERT(!f.isValid());
|
||||
}
|
||||
|
||||
void testRepeatedSave()
|
||||
|
Reference in New Issue
Block a user