slackbuilds_ponce/libraries/id3lib/patches/id3lib.nullpointer_check.patch
Dominik Drobek 36418881bd
libraries/id3lib: use patches from Slackware-current
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2020-02-09 21:52:05 +07:00

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