aboutsummaryrefslogtreecommitdiffstats
path: root/testing/id3lib/60-id3lib-missing-nullpointer-check.patch
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2014-10-14 22:21:38 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2014-10-14 22:22:13 +0200
commitac29cc338be46b86e61922f69d928645d71d5a9b (patch)
tree6790b0f01deb91375a32c5770d645db5be330872 /testing/id3lib/60-id3lib-missing-nullpointer-check.patch
parent8d50d846c0d0fe2ccb11f4a40feaac9c76f866ad (diff)
downloadaports-ac29cc338be46b86e61922f69d928645d71d5a9b.tar.bz2
aports-ac29cc338be46b86e61922f69d928645d71d5a9b.tar.xz
testing/id3lib: new aport
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;
+ }