[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/runtime/kioslave/man
From: Rolf Eike Beer <kde () opensource ! sf-tec ! de>
Date: 2008-09-10 13:32:31
Message-ID: 1221053551.429314.6254.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 859485 by dakon:
fix access beyond end of array if array ends with '\'
M +6 -1 man2html.cpp
--- trunk/KDE/kdebase/runtime/kioslave/man/man2html.cpp #859484:859485
@@ -2749,7 +2749,12 @@
while (*c && (*c!='\n' || lvl>0)) {
if (*c=='\\') {
c++;
- if (*c=='}') lvl--; else if (*c=='{') lvl++;
+ if (*c=='}')
+ lvl--;
+ else if (*c=='{')
+ lvl++;
+ else if (*c=='\0')
+ break;
}
c++;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic