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
af52f042
Commit
af52f042
authored
Apr 20, 2017
by
Nikias Bassen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bplist: Suppress compiler warnings with proper casts
parent
d6c43757
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
bplist.c
src/bplist.c
+3
-3
No files found.
src/bplist.c
View file @
af52f042
...
...
@@ -183,7 +183,7 @@ union plist_uint_ptr
#endif
#if __has_builtin(__builtin_umulll_overflow) || __GNUC__ >= 5
#define uint64_mul_overflow(a, b, r) __builtin_umulll_overflow(a, b, r)
#define uint64_mul_overflow(a, b, r) __builtin_umulll_overflow(a, b,
(unsigned long long*)
r)
#else
static
int
uint64_mul_overflow
(
uint64_t
a
,
uint64_t
b
,
uint64_t
*
res
)
{
...
...
@@ -575,7 +575,7 @@ static plist_t parse_bin_node(struct bplist_data *bplist, const char** object)
uint16_t
type
=
0
;
uint64_t
size
=
0
;
uint64_t
pobject
=
0
;
uint64_t
poffset_table
=
(
uint64_t
)
bplist
->
offset_table
;
uint64_t
poffset_table
=
(
uint64_t
)
(
uintptr_t
)
bplist
->
offset_table
;
if
(
!
object
)
return
NULL
;
...
...
@@ -613,7 +613,7 @@ static plist_t parse_bin_node(struct bplist_data *bplist, const char** object)
}
}
pobject
=
(
uint64_t
)
*
object
;
pobject
=
(
uint64_t
)
(
uintptr_t
)
*
object
;
switch
(
type
)
{
...
...
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