aboutsummaryrefslogtreecommitdiffstats
path: root/testing/id3lib/60-id3lib-missing-nullpointer-check.patch
diff options
context:
space:
mode:
authorDavid Demelier <markand@malikania.fr>2020-01-12 16:05:02 +0100
committerMilan P. Stanić <mps@arvanta.net>2020-01-13 18:00:08 +0100
commit3b5334bdbe84b81cef4c5fbc3a861c7c30ac0e5d (patch)
treea4cacce3f345aa1c715d97d4760bbfa4ecc98670 /testing/id3lib/60-id3lib-missing-nullpointer-check.patch
parentf9ed73698647868710849fd96c1bf74e85e74332 (diff)
downloadaports-3b5334bdbe84b81cef4c5fbc3a861c7c30ac0e5d.tar.bz2
aports-3b5334bdbe84b81cef4c5fbc3a861c7c30ac0e5d.tar.xz
testing/id3lib: new aport
http://id3lib.sourceforge.net library for reading, writing, and manipulating ID3v1 and ID3v2 tags
Diffstat (limited to 'testing/id3lib/60-id3lib-missing-nullpointer-check.patch')
-rw-r--r--testing/id3lib/60-id3lib-missing-nullpointer-check.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/id3lib/60-id3lib-missing-nullpointer-check.patch b/testing/id3lib/60-id3lib-missing-nullpointer-check.patch
new file mode 100644
index 0000000000..d4ca5d292f
--- /dev/null
+++ b/testing/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;
+ }