Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libplist
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwn
libplist
Commits
17546f53
Commit
17546f53
authored
May 19, 2019
by
Nikias Bassen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
plist_set_key_val(): prevent setting a key value that already exists in a PLIST_DICT
parent
ea37ed01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
plist.c
src/plist.c
+5
-0
No files found.
src/plist.c
View file @
17546f53
...
...
@@ -1067,6 +1067,11 @@ static void plist_set_element_val(plist_t node, plist_type type, const void *val
PLIST_API
void
plist_set_key_val
(
plist_t
node
,
const
char
*
val
)
{
plist_t
father
=
plist_get_parent
(
node
);
plist_t
item
=
plist_dict_get_item
(
father
,
val
);
if
(
item
)
{
return
;
}
plist_set_element_val
(
node
,
PLIST_KEY
,
val
,
strlen
(
val
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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