mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 04:54:19 -04:00
If a frame has both compression and encryption, since we currently
don't support encrypted frames, don't try to decompress it. Decryption is supposed to be applied before decompression, so currently the decompression isn't possible. BUG:112919 git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@503234 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
@ -168,7 +168,9 @@ ByteVector Frame::fieldData(const ByteVector &frameData) const
|
||||
}
|
||||
|
||||
#if HAVE_ZLIB
|
||||
if(d->header->compression()) {
|
||||
if(d->header->compression() &&
|
||||
!d->header->encryption())
|
||||
{
|
||||
ByteVector data(frameDataLength);
|
||||
uLongf uLongTmp = frameDataLength;
|
||||
::uncompress((Bytef *) data.data(),
|
||||
|
Reference in New Issue
Block a user