[Uml-devel] KDE/kdesdk/umbrello/umbrello/codeimport
Ralf Habacker
ralf.habacker at gmail.com
Wed Nov 30 11:38:05 UTC 2011
SVN commit 1266700 by habacker:
runtime exception fix
The exception is caused by exceeding limits (i+1) of the variable word.
The fix is to check limits before.
M +1 -1 idlimport.cpp
--- trunk/KDE/kdesdk/umbrello/umbrello/codeimport/idlimport.cpp #1266699:1266700
@@ -78,7 +78,7 @@
QChar c = word[i];
if (c.isLetterOrNumber() || c == '_') {
lexeme += c;
- } else if (c == ':' && word[i + 1] == ':') {
+ } else if (c == ':' && i < len-1 && word[i + 1] == ':') {
// compress scoped name into lexeme
lexeme += "::";
i++;
More information about the umbrello-devel
mailing list