aports/testing/id3lib/60-id3lib-missing-nullpointer-check.patch
David Demelier 3b5334bdbe testing/id3lib: new aport
http://id3lib.sourceforge.net
library for reading, writing, and manipulating ID3v1 and ID3v2 tags
2020-01-13 18:00:08 +01:00

13 lines
273 B
Diff

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;
}