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
f86366ee
Verified
Commit
f86366ee
authored
Apr 13, 2021
by
Waqar Ahmed
Browse files
Fix possible out of bound access in command bar
Signed-off-by:
Waqar Ahmed
<
waqar.17a@gmail.com
>
parent
ef07c57e
Changes
1
Hide whitespace changes
Inline
Side-by-side
kate/katecommandbar.cpp
View file @
f86366ee
...
@@ -226,6 +226,11 @@ public:
...
@@ -226,6 +226,11 @@ public:
btns
.
append
({
r
,
text
});
btns
.
append
({
r
,
text
});
}
}
// we have nothing, just return
if
(
btns
.
isEmpty
())
{
return
;
}
const
auto
plusRect
=
option
.
fontMetrics
.
boundingRect
(
QLatin1Char
(
'+'
));
const
auto
plusRect
=
option
.
fontMetrics
.
boundingRect
(
QLatin1Char
(
'+'
));
// draw them
// draw them
...
...
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