mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 13:04:18 -04:00
Make sure that there's (a) data in a bytevector that we're trying to convert
to an integer before trying to convert it and (b) make sure that there's data in an APE::Item before trying to parse it. BUG:92028 git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@358637 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
@ -123,8 +123,13 @@ bool APE::Item::isEmpty() const
|
||||
}
|
||||
}
|
||||
|
||||
void APE::Item::parse(const ByteVector& data)
|
||||
void APE::Item::parse(const ByteVector &data)
|
||||
{
|
||||
if(data.size() < 10) {
|
||||
debug("APE::Item::parse() -- no data in item");
|
||||
return;
|
||||
}
|
||||
|
||||
uint valueLength = data.mid(0, 4).toUInt(false);
|
||||
uint flags = data.mid(4, 4).toUInt(false);
|
||||
|
||||
|
Reference in New Issue
Block a user