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
b960e6f8
Commit
b960e6f8
authored
Feb 03, 2016
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Don't validate reader state in read_endelement.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
417ac65e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
11 deletions
+1
-11
reader.c
dlls/webservices/reader.c
+0
-10
reader.c
dlls/webservices/tests/reader.c
+1
-1
No files found.
dlls/webservices/reader.c
View file @
b960e6f8
...
...
@@ -1101,16 +1101,6 @@ static HRESULT read_endelement( struct reader *reader )
WS_XML_STRING
*
prefix
,
*
localname
;
HRESULT
hr
;
switch
(
reader
->
state
)
{
case
READER_STATE_TEXT
:
case
READER_STATE_STARTELEMENT
:
case
READER_STATE_STARTENDELEMENT
:
break
;
default:
return
WS_E_INVALID_FORMAT
;
}
if
(
read_cmp
(
reader
,
"</"
,
2
))
return
WS_E_INVALID_FORMAT
;
read_skip
(
reader
,
2
);
...
...
dlls/webservices/tests/reader.c
View file @
b960e6f8
...
...
@@ -885,7 +885,7 @@ static void test_WsReadStartElement(void)
if
(
node
)
ok
(
node
->
nodeType
==
WS_XML_NODE_TYPE_END_ELEMENT
,
"got %u
\n
"
,
node
->
nodeType
);
hr
=
WsReadEndElement
(
reader
,
NULL
);
todo_wine
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
hr
=
WsGetReaderNode
(
reader
,
&
node
,
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
...
...
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