Репозитории ALT
S: | 6.6.4-alt1 |
5.1: | 6.4-alt0.5 |
4.1: | 6.4-alt0.5 |
4.0: | 6.4-alt0.4 |
3.0: | 6.3.5-alt5 |
Другие репозитории
Upstream: | 6.3.2 |
Группа :: Мониторинг
Пакет: acct
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: acct-rh-ub.patch
Скачать
Скачать
--- acct/file_rd.c
+++ acct/file_rd.c
@@ -118,6 +118,10 @@ char *file_reader_get_entry(struct file_rd_info *fri)
? max_recs
: fri->buffered_records);
+ /* Prevent UB when incomplete record appears */
+ if (recs_to_read==0)
+ goto no_more_records;
+
/* Move back in the file */
(void)fseek(fri->fp, -fri->record_size * recs_to_read,