mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 13:04:18 -04:00
Do bounds checking before assuming that just because we've been told that
there are actually more items that there actually are. BUG:92028 git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@359382 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
@ -126,7 +126,9 @@ bool APE::Item::isEmpty() const
|
||||
|
||||
void APE::Item::parse(const ByteVector &data)
|
||||
{
|
||||
if(data.size() < 10) {
|
||||
// 11 bytes is the minimum size for an APE item
|
||||
|
||||
if(data.size() < 11) {
|
||||
debug("APE::Item::parse() -- no data in item");
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user