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
b1be1e99
Commit
b1be1e99
authored
Feb 09, 2017
by
Nikias Bassen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bplist: Make sure to detect integer overflow when handling unicode node size
Credit to OSS-Fuzz
parent
47d02dde
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
bplist.c
src/bplist.c
+4
-0
No files found.
src/bplist.c
View file @
b1be1e99
...
...
@@ -668,6 +668,10 @@ static plist_t parse_bin_node(struct bplist_data *bplist, const char** object)
return
parse_string_node
(
object
,
size
);
case
BPLIST_UNICODE
:
if
(
size
*
2
<
size
)
{
PLIST_BIN_ERR
(
"%s: Integer overflow when calculating BPLIST_UNICODE data size.
\n
"
,
__func__
);
return
NULL
;
}
if
(
*
object
+
size
*
2
>
bplist
->
offset_table
)
{
PLIST_BIN_ERR
(
"%s: BPLIST_UNICODE data bytes point outside of valid range
\n
"
,
__func__
);
return
NULL
;
...
...
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