mirror of
https://github.com/taglib/taglib.git
synced 2026-09-07 18:17:00 -04:00
A zero sample header size makes the sample loop consume no input, allowing crafted instrument and sample counts to cause excessive CPU and memory use during parsing. Some trackers write zero sample header sizes, some trackers ignore such values and assume a standard header size of 40 bytes. We do the same to ensure the sample loop advances.