mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
Add a test for fuzzed WAV files.
This commit is contained in:
parent
3170d47ec3
commit
695fb5ec16
BIN
tests/data/infloop.wav
Normal file
BIN
tests/data/infloop.wav
Normal file
Binary file not shown.
@ -15,6 +15,7 @@ class TestWAV : public CppUnit::TestFixture
|
||||
CPPUNIT_TEST(testLength);
|
||||
CPPUNIT_TEST(testZeroSizeDataChunk);
|
||||
CPPUNIT_TEST(testStripTags);
|
||||
CPPUNIT_TEST(testFuzzedFiles);
|
||||
CPPUNIT_TEST_SUITE_END();
|
||||
|
||||
public:
|
||||
@ -67,7 +68,13 @@ public:
|
||||
CPPUNIT_ASSERT(!f->hasID3v2Tag());
|
||||
CPPUNIT_ASSERT(f->hasInfoTag());
|
||||
delete f;
|
||||
}
|
||||
}
|
||||
|
||||
void testFuzzedFiles()
|
||||
{
|
||||
RIFF::WAV::File f(TEST_FILE_PATH_C("infloop.wav"));
|
||||
CPPUNIT_ASSERT(!f.isValid());
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user