Commit 40cb29d9 authored by Rafaël Carré's avatar Rafaël Carré Committed by Felix Paul Kühne

contrib: taglib: don't crash with strange files

Close #7036
Patch sent upstream
(cherry picked from commit c7f19291)

Conflicts:

	contrib/src/taglib/rules.mak
Signed-off-by: default avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 5eaac683
diff --git a/taglib/mpeg/id3v2/id3v2tag.cpp b/taglib/mpeg/id3v2/id3v2tag.cpp
index c6fe7b7..ebb1969 100644
--- a/taglib/mpeg/id3v2/id3v2tag.cpp
+++ b/taglib/mpeg/id3v2/id3v2tag.cpp
@@ -652,7 +652,9 @@ void ID3v2::Tag::parse(const ByteVector &origData)
return;
}
- Frame *frame = d->factory->createFrame(data.mid(frameDataPosition),
+ Frame *frame = NULL;
+ if (d->factory)
+ frame = d->factory->createFrame(data.mid(frameDataPosition),
&d->header);
if(!frame)
...@@ -13,6 +13,7 @@ $(TARBALLS)/taglib-$(TAGLIB_VERSION).tar.gz: ...@@ -13,6 +13,7 @@ $(TARBALLS)/taglib-$(TAGLIB_VERSION).tar.gz:
taglib: taglib-$(TAGLIB_VERSION).tar.gz .sum-taglib taglib: taglib-$(TAGLIB_VERSION).tar.gz .sum-taglib
$(UNPACK) $(UNPACK)
$(APPLY) $(SRC)/taglib/taglib-static.patch $(APPLY) $(SRC)/taglib/taglib-static.patch
$(APPLY) $(SRC)/taglib/7036.patch
ifdef HAVE_WIN32 ifdef HAVE_WIN32
$(APPLY) $(SRC)/taglib/taglib-win32.patch $(APPLY) $(SRC)/taglib/taglib-win32.patch
endif endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment