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
1c0b659b
Commit
1c0b659b
authored
Aug 05, 2014
by
Nikias Bassen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bplist: Silence compiler warning about 'always true' comparison due to type mismatch
parent
d05dca37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
bplist.c
src/bplist.c
+6
-2
No files found.
src/bplist.c
View file @
1c0b659b
...
...
@@ -1115,6 +1115,8 @@ void plist_to_bin(plist_t plist, char **plist_bin, uint32_t * length)
long
items_read
=
0
;
long
items_written
=
0
;
uint16_t
*
unicodestr
=
NULL
;
uint64_t
objects_len
=
0
;
uint64_t
buff_len
=
0
;
//check for valid input
if
(
!
plist
||
!
plist_bin
||
*
plist_bin
||
!
length
)
...
...
@@ -1132,7 +1134,8 @@ void plist_to_bin(plist_t plist, char **plist_bin, uint32_t * length)
//now stream to output buffer
offset_size
=
0
;
//unknown yet
dict_param_size
=
get_needed_bytes
(
objects
->
len
);
objects_len
=
objects
->
len
;
dict_param_size
=
get_needed_bytes
(
objects_len
);
num_objects
=
objects
->
len
;
root_object
=
0
;
//root is first in list
offset_table_index
=
0
;
//unknown yet
...
...
@@ -1211,7 +1214,8 @@ void plist_to_bin(plist_t plist, char **plist_bin, uint32_t * length)
hash_table_destroy
(
ref_table
);
//write offsets
offset_size
=
get_needed_bytes
(
bplist_buff
->
len
);
buff_len
=
bplist_buff
->
len
;
offset_size
=
get_needed_bytes
(
buff_len
);
offset_table_index
=
bplist_buff
->
len
;
for
(
i
=
0
;
i
<
num_objects
;
i
++
)
{
...
...
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