* id3lib-3.8.3-fix-utf16-stringlists.patch - Add patch to add wrappers for field encoding: * add-c-wrapper-functions.patch - Add patch to fix null pointer check: * id3lib-missing-nullpointer-check.patch - Rename patch id3lib-3.8.3-fix-stack-overrun to id3lib-3.8.3-fix-stack-overrun.patch in order to keep the name sane OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/id3lib?expand=0&rev=23
13 lines
273 B
Diff
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;
|
|
}
|