Skip to content
GitLab
Menu
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
0794870d
Commit
0794870d
authored
Feb 05, 2021
by
Waqar Ahmed
Browse files
Fix use after free in command bar
parent
617480c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
kate/katecommandbar.cpp
View file @
0794870d
...
...
@@ -55,7 +55,8 @@ protected:
int
score
=
0
;
const
auto
idx
=
sourceModel
()
->
index
(
sourceRow
,
0
,
sourceParent
);
const
auto
actionName
=
idx
.
data
().
toString
().
splitRef
(
QLatin1Char
(
':'
)).
at
(
1
);
const
QString
string
=
idx
.
data
().
toString
();
const
QStringView
actionName
=
string
.
splitRef
(
QLatin1Char
(
':'
)).
at
(
1
);
const
bool
res
=
kfts
::
fuzzy_match_sequential
(
m_pattern
,
actionName
,
score
);
sourceModel
()
->
setData
(
idx
,
score
,
CommandModel
::
Score
);
return
res
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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