mirror of
https://github.com/taglib/taglib.git
synced 2025-11-12 20:52:52 -05:00
Add a few checks to make sure that we don't blow up when trying to read zero-byte
values. BUG:150250 git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@717984 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
@ -216,7 +216,7 @@ void APE::Tag::read()
|
||||
d->file->seek(d->tagOffset);
|
||||
d->footer.setData(d->file->readBlock(Footer::size()));
|
||||
|
||||
if(d->footer.tagSize() == 0 ||
|
||||
if(d->footer.tagSize() <= Footer::size() ||
|
||||
d->footer.tagSize() > uint(d->file->length()))
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user