mirror of
https://github.com/taglib/taglib.git
synced 2025-07-19 05:24:25 -04:00
Fixes access violation
- Fixes access violation when setting empty stringlist on integer properties in mp4 tag - Add a unit test that validates the fix.
This commit is contained in:
@ -305,6 +305,14 @@ public:
|
||||
CPPUNIT_ASSERT(f.tag()->contains("cpil"));
|
||||
CPPUNIT_ASSERT_EQUAL(false, f.tag()->item("cpil").toBool());
|
||||
CPPUNIT_ASSERT_EQUAL(StringList("0"), tags["COMPILATION"]);
|
||||
|
||||
// Empty properties do not result in access violations
|
||||
// when converting integers
|
||||
tags["TRACKNUMBER"] = StringList();
|
||||
tags["DISCNUMBER"] = StringList();
|
||||
tags["BPM"] = StringList();
|
||||
tags["COMPILATION"] = StringList();
|
||||
f.setProperties(tags);
|
||||
}
|
||||
|
||||
void testFuzzedFile()
|
||||
|
Reference in New Issue
Block a user