mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 21:14:23 -04:00
Fix the wrong padding of ByteVector::resize().
The expanded area will be filled with garbage instead of correct padding in some corner cases.
This commit is contained in:
@ -123,6 +123,12 @@ public:
|
||||
CPPUNIT_ASSERT(i.containsAt(j, 5, 0));
|
||||
CPPUNIT_ASSERT(i.containsAt(j, 6, 1));
|
||||
CPPUNIT_ASSERT(i.containsAt(j, 6, 1, 3));
|
||||
|
||||
ByteVector k = ByteVector("0123456789").mid(3, 4);
|
||||
k.resize(6, 'A');
|
||||
CPPUNIT_ASSERT_EQUAL(uint(6), k.size());
|
||||
CPPUNIT_ASSERT_EQUAL('6', k[3]);
|
||||
CPPUNIT_ASSERT_EQUAL('A', k[4]);
|
||||
}
|
||||
|
||||
void testFind1()
|
||||
|
Reference in New Issue
Block a user