Репозитории ALT
S: | 1.17.0-alt9 |
5.1: | 1.17.0-alt8 |
4.1: | 1.17.0-alt6 |
4.0: | 1.17.0-alt6 |
3.0: | 1.17.0-alt6 |
Группа :: Графика
Пакет: xli
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: 050-read_past_bufferend_343718.patch
Скачать
Скачать
#343718 ?
Index: xli-1.17.0+20061110/zio.c
===================================================================
--- xli-1.17.0+20061110.orig/zio.c
+++ xli-1.17.0+20061110/zio.c
@@ -436,13 +436,8 @@ _zopen(ZFILE *zf)
/* File is now open, so see if it is a uuencoded file */
while (uutry-- > 0) {
- if (fgets(uuibuf, UULEN, zf->stream) != NULL) {
- int blen;
- blen = buflen(uuibuf, UULEN);
- if (blen < 0) { /* doesn't look like reasonable junk */
- _zaptocache(zf, uuibuf, -blen);
- break;
- }
+ int blen;
+ if ((blen = fread(uuibuf, 1, UULEN, zf->stream)) > 0) {
_zaptocache(zf, uuibuf, blen); /* keep zfile data cached */
if (!strncmp(uuibuf, "begin ", 6)
&& isdigit(uuibuf[6])