60-id3lib-missing-nullpointer-check.patch 273 B

12345678910111213
  1. This patch adds a check for a null pointer
  2. --- a/src/header_tag.cpp
  3. +++ b/src/header_tag.cpp
  4. @@ -54,7 +54,7 @@
  5. {
  6. size_t bytesUsed = ID3_TagHeader::SIZE;
  7. - if (_info->is_extended)
  8. + if (_info && _info->is_extended)
  9. {
  10. bytesUsed += _info->extended_bytes;
  11. }