Fix crash with invalid WAV files (#1163) (#1164)

With specially crafted WAV files having the "id3 " chunk as the
only valid chunk, when trying to write the tags, the existing
"id3 " chunk is removed, and then vector::front() is called on
the now empty chunks vector.
Now it is checked if the vector is empty to avoid the crash.
This commit is contained in:
Urs Fleisch
2023-11-05 14:40:18 +01:00
committed by GitHub
parent f202fa25c3
commit dfa33bec08
3 changed files with 21 additions and 0 deletions

Binary file not shown.