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
6086ad0f
Commit
6086ad0f
authored
Jan 21, 2016
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Reject end elements without a parent in the writer.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ed336395
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
reader.c
dlls/webservices/reader.c
+2
-2
webservices_private.h
dlls/webservices/webservices_private.h
+2
-0
writer.c
dlls/webservices/writer.c
+4
-1
No files found.
dlls/webservices/reader.c
View file @
6086ad0f
...
...
@@ -1063,8 +1063,8 @@ static BOOL cmp_localname( const unsigned char *name1, ULONG len1, const unsigne
return
TRUE
;
}
st
atic
st
ruct
node
*
find_parent_element
(
struct
node
*
node
,
const
WS_XML_STRING
*
prefix
,
const
WS_XML_STRING
*
localname
)
struct
node
*
find_parent_element
(
struct
node
*
node
,
const
WS_XML_STRING
*
prefix
,
const
WS_XML_STRING
*
localname
)
{
struct
node
*
parent
;
const
WS_XML_STRING
*
str
;
...
...
dlls/webservices/webservices_private.h
View file @
6086ad0f
...
...
@@ -32,6 +32,8 @@ WS_XML_STRING *alloc_xml_string( const unsigned char *, ULONG ) DECLSPEC_HIDDEN;
WS_XML_UTF8_TEXT
*
alloc_utf8_text
(
const
unsigned
char
*
,
ULONG
)
DECLSPEC_HIDDEN
;
HRESULT
append_attribute
(
WS_XML_ELEMENT_NODE
*
,
WS_XML_ATTRIBUTE
*
)
DECLSPEC_HIDDEN
;
void
free_attribute
(
WS_XML_ATTRIBUTE
*
)
DECLSPEC_HIDDEN
;
struct
node
*
find_parent_element
(
struct
node
*
,
const
WS_XML_STRING
*
,
const
WS_XML_STRING
*
)
DECLSPEC_HIDDEN
;
struct
node
{
...
...
dlls/webservices/writer.c
View file @
6086ad0f
...
...
@@ -546,10 +546,13 @@ static HRESULT write_startelement( struct writer *writer )
static
HRESULT
write_endelement
(
struct
writer
*
writer
)
{
WS_XML_ELEMENT_NODE
*
elem
=
(
WS_XML_ELEMENT_NODE
*
)
writer
->
current
;
struct
node
*
node
=
find_parent_element
(
writer
->
current
,
NULL
,
NULL
);
WS_XML_ELEMENT_NODE
*
elem
=
&
node
->
hdr
;
ULONG
size
;
HRESULT
hr
;
if
(
!
elem
)
return
WS_E_INVALID_FORMAT
;
/* '</prefix:localname>' */
size
=
elem
->
localName
->
length
+
3
/* '</>' */
;
...
...
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