From 10d40f27c9f65ef1bf2f7169bb5fd62dd81a20fa Mon Sep 17 00:00:00 2001 From: Dominik Drobek Date: Sat, 25 Jan 2020 07:24:27 +0700 Subject: libraries/id3lib: Add upstream patches. Signed-off-by: Willy Sudiarto Raharjo --- .../id3lib/patches/60-id3lib-missing-nullpointer-check.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 libraries/id3lib/patches/60-id3lib-missing-nullpointer-check.patch (limited to 'libraries/id3lib/patches/60-id3lib-missing-nullpointer-check.patch') diff --git a/libraries/id3lib/patches/60-id3lib-missing-nullpointer-check.patch b/libraries/id3lib/patches/60-id3lib-missing-nullpointer-check.patch new file mode 100644 index 0000000000..d4ca5d292f --- /dev/null +++ b/libraries/id3lib/patches/60-id3lib-missing-nullpointer-check.patch @@ -0,0 +1,12 @@ +This patch adds a check for a null pointer +--- a/src/header_tag.cpp ++++ b/src/header_tag.cpp +@@ -54,7 +54,7 @@ + { + size_t bytesUsed = ID3_TagHeader::SIZE; + +- if (_info->is_extended) ++ if (_info && _info->is_extended) + { + bytesUsed += _info->extended_bytes; + } -- cgit v1.2.3