summaryrefslogtreecommitdiffstats
path: root/source/l/id3lib/patches/id3lib.nullpointer_check.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/l/id3lib/patches/id3lib.nullpointer_check.patch')
-rw-r--r--source/l/id3lib/patches/id3lib.nullpointer_check.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/l/id3lib/patches/id3lib.nullpointer_check.patch b/source/l/id3lib/patches/id3lib.nullpointer_check.patch
new file mode 100644
index 000000000..d4ca5d292
--- /dev/null
+++ b/source/l/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;
+ }