mirror of
https://github.com/taglib/taglib.git
synced 2025-07-19 05:24:25 -04:00
Avoid an infinite loop when reading fuzzed WavPack files. (#482)
This commit is contained in:
BIN
tests/data/infloop.wv
Normal file
BIN
tests/data/infloop.wv
Normal file
Binary file not shown.
@ -35,6 +35,11 @@ public:
|
||||
CPPUNIT_ASSERT_EQUAL(4, props->length());
|
||||
}
|
||||
|
||||
void testFuzzedFile()
|
||||
{
|
||||
WavPack::File f(TEST_FILE_PATH_C("infloop.wv"));
|
||||
CPPUNIT_ASSERT(f.isValid());
|
||||
}
|
||||
};
|
||||
|
||||
CPPUNIT_TEST_SUITE_REGISTRATION(TestWavPack);
|
||||
|
Reference in New Issue
Block a user