Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sepolicy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor 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
CodeLinaro
public-release-test
platform
system
sepolicy
Commits
c22d14ba
Commit
c22d14ba
authored
6 years ago
by
Treehugger Robot
Committed by
Gerrit Code Review
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge "checkseapp: check the size of key value pairs"
parents
b1dad096
eb74dd9f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/check_seapp.c
+7
-0
7 additions, 0 deletions
tools/check_seapp.c
with
7 additions
and
0 deletions
tools/check_seapp.c
+
7
−
0
View file @
c22d14ba
...
@@ -1128,6 +1128,9 @@ static void parse_file(file_info *in_file) {
...
@@ -1128,6 +1128,9 @@ static void parse_file(file_info *in_file) {
if
(
!
token
)
if
(
!
token
)
break
;
break
;
if
(
token_cnt
==
KVP_NUM_OF_RULES
)
goto
oob
;
}
/*End token parsing */
}
/*End token parsing */
rule_map
*
r
=
rule_map_new
(
keys
,
token_cnt
,
lineno
,
in_file
->
name
,
is_never_allow
);
rule_map
*
r
=
rule_map_new
(
keys
,
token_cnt
,
lineno
,
in_file
->
name
,
is_never_allow
);
...
@@ -1148,6 +1151,10 @@ err:
...
@@ -1148,6 +1151,10 @@ err:
oom:
oom:
log_error
(
"In function %s: Out of memory
\n
"
,
__FUNCTION__
);
log_error
(
"In function %s: Out of memory
\n
"
,
__FUNCTION__
);
exit
(
EXIT_FAILURE
);
exit
(
EXIT_FAILURE
);
oob:
log_error
(
"Reading file:
\"
%s
\"
line: %zu reason: the size of key pairs exceeds the MAX(%zu)
\n
"
,
in_file
->
name
,
lineno
,
KVP_NUM_OF_RULES
);
exit
(
EXIT_FAILURE
);
}
}
/**
/**
...
...
This diff is collapsed.
Click to expand it.
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