Репозитории ALT
S: | 0.3.2-alt3 |
5.1: | 0.2.10.2-alt1.1 |
4.1: | 0.2.10.2-alt1.1 |
4.0: | 0.2.10.2-alt1.1 |
3.0: | 0.2.10.2-alt1 |
Группа :: Звук
Пакет: mpg321
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: mpg321-0.3.2-CVE-2019-14247.patch
Скачать
Скачать
Description: Handle illegal bitrate value
Author: Chrysostomos Nanakos <cnanakos@debian.org>
Bug-Debian: https://bugs.debian.org/870406
Bug-Debian: https://bugs.debian.org/887057
--- mpg321-0.3.2.orig/mad.c
+++ mpg321-0.3.2/mad.c
@@ -574,6 +574,12 @@ void scan(void const *ptr, ssize_t len,
if (!is_vbr)
{
+ if (header.bitrate <= 0)
+ {
+ fprintf(stderr, "Illegal bit allocation value\n");
+ return;
+ }
+
double time = (len * 8.0) / (header.bitrate); /* time in seconds */
double timefrac = (double)time - ((long)(time));
long nsamples = 32 * MAD_NSBSAMPLES(&header); /* samples per frame */