Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
KWSys
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Utils
KWSys
Commits
199aa713
Commit
199aa713
authored
1 year ago
by
Brad King
Browse files
Options
Downloads
Patches
Plain Diff
RegularExpression: Tell clang-analyzer that program memory is initialized
parent
a3ff01ab
No related branches found
No related tags found
1 merge request
!283
RegularExpression: Tell clang-analyzer that program memory is initialized
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
RegularExpression.cxx
+4
-0
4 additions, 0 deletions
RegularExpression.cxx
with
4 additions
and
0 deletions
RegularExpression.cxx
+
4
−
0
View file @
199aa713
...
...
@@ -378,6 +378,10 @@ bool RegularExpression::compile(const char* exp)
return
false
;
}
#ifdef __clang_analyzer__
/* Convince it that the program is initialized. */
memset
(
this
->
program
,
0
,
comp
.
regsize
);
#endif
// Second pass: emit code.
comp
.
regparse
=
exp
;
comp
.
regnpar
=
1
;
...
...
This diff is collapsed.
Click to expand it.
Brad King
@brad.king
mentioned in commit
df6f93a4
·
1 year ago
mentioned in commit
df6f93a4
mentioned in commit df6f93a430449816d1d8c112d0743cf30601c5b7
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