Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
a5117f61
Commit
a5117f61
authored
Aug 11, 2022
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
addons/symbolviewer/python_parser.cpp
View file @
a5117f61
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment