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
61072528
Commit
61072528
authored
Mar 13, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Protect SAX character callback from null node.
parent
072b2db2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
domdoc.c
dlls/msxml3/domdoc.c
+13
-10
No files found.
dlls/msxml3/domdoc.c
View file @
61072528
...
...
@@ -421,19 +421,22 @@ static inline BOOL strn_isspace(xmlChar const* str, int len)
static
void
sax_characters
(
void
*
ctx
,
const
xmlChar
*
ch
,
int
len
)
{
xmlParserCtxtPtr
pctx
;
domdoc
const
*
This
;
xmlParserCtxtPtr
ctxt
;
const
domdoc
*
This
;
pctx
=
(
xmlParserCtxtPtr
)
ctx
;
This
=
(
domdoc
const
*
)
pctx
->
_private
;
ctxt
=
(
xmlParserCtxtPtr
)
ctx
;
This
=
(
const
domdoc
*
)
ctxt
->
_private
;
/* during domdoc_loadXML() the xmlDocPtr->_private data is not available */
if
(
!
This
->
properties
->
preserving
&&
!
is_preserving_whitespace
(
pctx
->
node
)
&&
strn_isspace
(
ch
,
len
))
return
;
if
(
ctxt
->
node
)
{
/* during domdoc_loadXML() the xmlDocPtr->_private data is not available */
if
(
!
This
->
properties
->
preserving
&&
!
is_preserving_whitespace
(
ctxt
->
node
)
&&
strn_isspace
(
ch
,
len
))
return
;
}
xmlSAX2Characters
(
ctx
,
ch
,
len
);
xmlSAX2Characters
(
ctx
t
,
ch
,
len
);
}
static
void
LIBXML2_LOG_CALLBACK
sax_error
(
void
*
ctx
,
char
const
*
msg
,
...)
...
...
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