Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemSEPolicy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemSEPolicy
Commits
8f4600c0
Commit
8f4600c0
authored
12 years ago
by
rpcraig
Committed by
Android Git Automerger
12 years ago
Browse files
Options
Downloads
Plain Diff
am
5dbfdc0b
: Add double free protection to checkseapp.
* commit '
5dbfdc0b
': Add double free protection to checkseapp.
parents
84b7472d
5dbfdc0b
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
check_seapp/check_seapp.c
+6
-0
6 additions, 0 deletions
check_seapp/check_seapp.c
with
6 additions
and
0 deletions
check_seapp/check_seapp.c
+
6
−
0
View file @
8f4600c0
...
...
@@ -428,8 +428,11 @@ static void rule_map_free(rule_map *rm, rule_map_switch s) {
free
(
m
->
data
);
}
/* hdestroy() frees comparsion keys for non glibc */
#ifdef __GLIBC__
if
(
s
==
rule_map_destroy_key
&&
rm
->
key
)
free
(
rm
->
key
);
#endif
free
(
rm
);
}
...
...
@@ -778,7 +781,10 @@ static void rule_add(rule_map *rm) {
*/
preserved_key
=
tmp
->
r
->
key
;
rule_map_free
(
tmp
->
r
,
rule_map_preserve_key
);
/* hdestroy() frees comparsion keys for non glibc */
#ifdef __GLIBC__
free
(
rm
->
key
);
#endif
rm
->
key
=
preserved_key
;
tmp
->
r
=
rm
;
}
...
...
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