summaryrefslogtreecommitdiff
path: root/libraries/id3lib/patches/id3lib.nullpointer_check.patch
diff options
context:
space:
mode:
authorDominik Drobek <dominik.drobek (at) o2.pl>2020-02-08 23:21:35 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-02-09 21:52:05 +0700
commit36418881bda346f45c5be5cd9ced6601c853c080 (patch)
tree9fcff24a87b4d68cbe444532d6fc946180038dc7 /libraries/id3lib/patches/id3lib.nullpointer_check.patch
parenta97cc7b79a7f7e25e7ea1655aeb0e24ec7118ec8 (diff)
downloadslackbuilds-36418881bda346f45c5be5cd9ced6601c853c080.tar.gz
libraries/id3lib: use patches from Slackware-current
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/id3lib/patches/id3lib.nullpointer_check.patch')
-rw-r--r--libraries/id3lib/patches/id3lib.nullpointer_check.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/libraries/id3lib/patches/id3lib.nullpointer_check.patch b/libraries/id3lib/patches/id3lib.nullpointer_check.patch
new file mode 100644
index 0000000000..d4ca5d292f
--- /dev/null
+++ b/libraries/id3lib/patches/id3lib.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;
+ }