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
ca33a2b7
Commit
ca33a2b7
authored
8 years ago
by
Nikias Bassen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xplist: Fix OOB read when parsing double quotes
parent
8c5eae98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
xplist.c
src/xplist.c
+4
-0
No files found.
src/xplist.c
View file @
ca33a2b7
...
@@ -469,6 +469,10 @@ static void find_next(parse_ctx ctx, const char *nextchars, int numchars, int sk
...
@@ -469,6 +469,10 @@ static void find_next(parse_ctx ctx, const char *nextchars, int numchars, int sk
if
(
skip_quotes
&&
(
*
(
ctx
->
pos
)
==
'"'
))
{
if
(
skip_quotes
&&
(
*
(
ctx
->
pos
)
==
'"'
))
{
ctx
->
pos
++
;
ctx
->
pos
++
;
find_char
(
ctx
,
'"'
,
0
);
find_char
(
ctx
,
'"'
,
0
);
if
(
ctx
->
pos
>=
ctx
->
end
)
{
PLIST_XML_ERR
(
"EOF while looking for matching double quote
\n
"
);
return
;
}
if
(
*
(
ctx
->
pos
)
!=
'"'
)
{
if
(
*
(
ctx
->
pos
)
!=
'"'
)
{
PLIST_XML_ERR
(
"Unmatched double quote
\n
"
);
PLIST_XML_ERR
(
"Unmatched double quote
\n
"
);
return
;
return
;
...
...
This diff is collapsed.
Click to expand it.
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