Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37493153
en ru br
Репозитории ALT
S:2.7.0-alt1
5.1: 2.5.27-alt1
4.1: 2.5.23-alt1
4.0: 2.5.18-alt2
3.0: 2.5.13-alt1
www.altlinux.org/Changes

Другие репозитории
Upstream:2.5.25

Группа :: Графические оболочки/FVWM-подобные
Пакет: fvwm

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: fvwm-rh-FvwmPager-be-more-careful-with-window-labels.patch
Скачать


From: Anton Khirnov <anton@khirnov.net>
Date: Fri, 16 Nov 2012 18:01:13 +0100
Subject: [PATCH] FvwmPager: be more careful with window labels.
Do not assume they contain properly encoded strings.
diff --git a/modules/FvwmPager/x_pager.c b/modules/FvwmPager/x_pager.c
index a0c3a6f..e56095c 100644
--- a/modules/FvwmPager/x_pager.c
+++ b/modules/FvwmPager/x_pager.c
@@ -2775,6 +2775,11 @@ static void label_window_wrap(PagerWindow *t)
         len   = FlocaleStringNumberOfBytes(FwindowFont, next);
         width = FlocaleTextWidth(FwindowFont, next, len);
 
+        if (end - next < len) {
+          fprintf(stderr, "%s: malformed window label\n", MyName);
+          return;
+        }
+
         if (width > t->pager_view_width - cur_width - 2*label_border && cur != next)
           break;
 
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin