aboutsummaryrefslogtreecommitdiff
path: root/libraries/id3lib/patches/60-id3lib-missing-nullpointer-check.patch
diff options
context:
space:
mode:
authorDominik Drobek <dominik.drobek (at) o2.pl>2020-01-25 07:24:27 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-01-25 07:24:27 +0700
commit10d40f27c9f65ef1bf2f7169bb5fd62dd81a20fa (patch)
treede933c7222855d085f9e2c16fd6713750eebbe9c /libraries/id3lib/patches/60-id3lib-missing-nullpointer-check.patch
parenta1cbb9d55171f9913d5c1ebdb957075122937b1f (diff)
libraries/id3lib: Add upstream patches.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/id3lib/patches/60-id3lib-missing-nullpointer-check.patch')
-rw-r--r--libraries/id3lib/patches/60-id3lib-missing-nullpointer-check.patch12
1 files changed, 12 insertions, 0 deletions
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;
+ }