Commit a5117f61 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Fix out of bound string access

BUG: 457344
parent 25d7025e
Pipeline #216747 passed with stage
in 8 minutes and 8 seconds
......@@ -60,7 +60,7 @@ void KatePluginSymbolViewerView::parsePythonSymbols(void)
int line = i;
QString cl = kv->line(i);
// concatenate continued lines and remove continuation marker
if (cl.length() == 0) {
if (cl.isEmpty()) {
continue;
}
while (cl[cl.length() - 1] == QLatin1Char('\\')) {
......@@ -71,6 +71,9 @@ void KatePluginSymbolViewerView::parsePythonSymbols(void)
} else {
break;
}
if (cl.isEmpty()) {
break;
}
}
match = class_regexp.match(cl);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment