aboutsummaryrefslogtreecommitdiffstats
path: root/community/id3lib/60-id3lib-missing-nullpointer-check.patch
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2020-03-08 22:47:27 +0100
committerRasmus Thomsen <oss@cogitri.dev>2020-03-09 11:55:49 +0100
commit9b1499bd9c610e813b1ef685ccca74a37d1362ba (patch)
tree78bc2691eda468f476768e3c0de03bcaf58163b3 /community/id3lib/60-id3lib-missing-nullpointer-check.patch
parentfb35b14863cfd9f7be8d826d96e2108efd3a0640 (diff)
community/id3lib: move from testing
Diffstat (limited to 'community/id3lib/60-id3lib-missing-nullpointer-check.patch')
-rw-r--r--community/id3lib/60-id3lib-missing-nullpointer-check.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/community/id3lib/60-id3lib-missing-nullpointer-check.patch b/community/id3lib/60-id3lib-missing-nullpointer-check.patch
new file mode 100644
index 00000000000..d4ca5d292f1
--- /dev/null
+++ b/community/id3lib/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;
+ }