Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
kicad
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
Show more breadcrumbs
KiCad
KiCad Source Code
kicad
Commits
02aca4a7
Commit
02aca4a7
authored
4 years ago
by
Jeff Young
Browse files
Options
Downloads
Patches
Plain Diff
Don't run off the end of a string.
Fixes
#7461
parent
a475f457
No related branches found
No related tags found
Loading
Pipeline
#253007452
passed
4 years ago
Stage: build
Stage: test
Stage: report
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/common.cpp
+10
-2
10 additions, 2 deletions
common/common.cpp
with
10 additions
and
2 deletions
common/common.cpp
+
10
−
2
View file @
02aca4a7
...
...
@@ -169,8 +169,16 @@ wxString KIwxExpandEnvVars( const wxString& str, const PROJECT* aProject )
size_t
m
=
n
+
1
;
wxUniChar
str_m
=
str
[
m
];
while
(
m
<
strlen
&&
(
wxIsalnum
(
str_m
)
||
str_m
==
wxT
(
'_'
)
||
str_m
==
wxT
(
':'
)
)
)
str_m
=
str
[
++
m
];
while
(
wxIsalnum
(
str_m
)
||
str_m
==
wxT
(
'_'
)
||
str_m
==
wxT
(
':'
)
)
{
if
(
++
m
==
strlen
)
{
str_m
=
0
;
break
;
}
str_m
=
str
[
m
];
}
wxString
strVarName
(
str
.
c_str
()
+
n
+
1
,
m
-
n
-
1
);
...
...
This diff is collapsed.
Click to expand it.
Dino Ghilardi
@dino.ghilardi
mentioned in issue
#8670 (closed)
·
3 years ago
mentioned in issue
#8670 (closed)
mentioned in issue #8670
Toggle commit list
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment