Репозитории ALT
S: | 1.6.1-alt4 |
D: | 1.3.4-alt3.2 |
5.1: | 1.3.12-alt0.M51.1 |
4.1: | 1.2.12-alt1.M41.1 |
4.0: | 1.2.8-alt2 |
Группа :: Система/Библиотеки
Пакет: aprutil1
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: apr-util-1.2.12-CVE-2009-0023.patch
Скачать
Скачать
--- apr/apr-util/branches/1.3.x/strmatch/apr_strmatch.c 2009/05/29 07:48:33 779879
+++ apr/apr-util/branches/1.3.x/strmatch/apr_strmatch.c 2009/05/29 07:48:45 779880
@@ -103,13 +103,13 @@
if (case_sensitive) {
pattern->compare = match_boyer_moore_horspool;
for (i = 0; i < pattern->length - 1; i++) {
- shift[(int)s[i]] = pattern->length - i - 1;
+ shift[(unsigned char)s[i]] = pattern->length - i - 1;
}
}
else {
pattern->compare = match_boyer_moore_horspool_nocase;
for (i = 0; i < pattern->length - 1; i++) {
- shift[apr_tolower(s[i])] = pattern->length - i - 1;
+ shift[(unsigned char)apr_tolower(s[i])] = pattern->length - i - 1;
}
}
pattern->context = shift;