Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a42a0917
Commit
a42a0917
authored
Jun 27, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Jun 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Fix illegal memory access.
parent
77f4c853
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
saxreader.c
dlls/msxml3/saxreader.c
+6
-3
No files found.
dlls/msxml3/saxreader.c
View file @
a42a0917
...
...
@@ -1111,7 +1111,8 @@ static void libxmlEndElementNS(
end
=
(
xmlChar
*
)
This
->
pParserCtxt
->
input
->
cur
;
if
(
*
(
end
-
1
)
!=
'>'
||
*
(
end
-
2
)
!=
'/'
)
while
(
*
(
end
-
2
)
!=
'<'
&&
*
(
end
-
1
)
!=
'/'
)
end
--
;
while
(
end
-
2
>=
This
->
pParserCtxt
->
input
->
base
&&
*
(
end
-
2
)
!=
'<'
&&
*
(
end
-
1
)
!=
'/'
)
end
--
;
update_position
(
This
,
end
);
...
...
@@ -1268,7 +1269,8 @@ static void libxmlComment(void *ctx, const xmlChar *value)
HRESULT
hr
;
xmlChar
*
beg
=
(
xmlChar
*
)
This
->
pParserCtxt
->
input
->
cur
;
while
(
memcmp
(
beg
-
4
,
"<!--"
,
sizeof
(
char
[
4
])))
beg
--
;
while
(
beg
-
4
>=
This
->
pParserCtxt
->
input
->
base
&&
memcmp
(
beg
-
4
,
"<!--"
,
sizeof
(
char
[
4
])))
beg
--
;
update_position
(
This
,
beg
);
if
(
!
This
->
vbInterface
&&
!
This
->
saxreader
->
lexicalHandler
)
return
;
...
...
@@ -1345,7 +1347,8 @@ static void libxmlCDataBlock(void *ctx, const xmlChar *value, int len)
BSTR
Chars
;
BOOL
lastEvent
=
FALSE
,
change
;
while
(
memcmp
(
beg
-
9
,
"<![CDATA["
,
sizeof
(
char
[
9
])))
beg
--
;
while
(
beg
-
9
>=
This
->
pParserCtxt
->
input
->
base
&&
memcmp
(
beg
-
9
,
"<![CDATA["
,
sizeof
(
char
[
9
])))
beg
--
;
update_position
(
This
,
beg
);
if
(
This
->
vbInterface
&&
This
->
saxreader
->
vblexicalHandler
)
...
...
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