Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
7a5a7819
Commit
7a5a7819
authored
Aug 03, 2008
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Add NULL pointers check in getLocalName, getQName and getValue.
parent
319d86c7
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 @
7a5a7819
...
...
@@ -626,7 +626,8 @@ static HRESULT WINAPI isaxattributes_getLocalName(
saxattributes
*
This
=
impl_from_ISAXAttributes
(
iface
);
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
nIndex
);
if
(
nIndex
>=
This
->
nb_attributes
)
return
E_INVALIDARG
;
if
(
nIndex
>=
This
->
nb_attributes
||
nIndex
<
0
)
return
E_INVALIDARG
;
if
(
!
pLocalName
||
!
pLocalNameLength
)
return
E_POINTER
;
*
pLocalNameLength
=
SysStringLen
(
This
->
szLocalname
[
nIndex
]);
*
pLocalName
=
This
->
szLocalname
[
nIndex
];
...
...
@@ -643,7 +644,8 @@ static HRESULT WINAPI isaxattributes_getQName(
saxattributes
*
This
=
impl_from_ISAXAttributes
(
iface
);
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
nIndex
);
if
(
nIndex
>=
This
->
nb_attributes
)
return
E_INVALIDARG
;
if
(
nIndex
>=
This
->
nb_attributes
||
nIndex
<
0
)
return
E_INVALIDARG
;
if
(
!
pQName
||
!
pQNameLength
)
return
E_POINTER
;
*
pQNameLength
=
SysStringLen
(
This
->
szQName
[
nIndex
]);
*
pQName
=
This
->
szQName
[
nIndex
];
...
...
@@ -744,7 +746,8 @@ static HRESULT WINAPI isaxattributes_getValue(
saxattributes
*
This
=
impl_from_ISAXAttributes
(
iface
);
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
nIndex
);
if
(
nIndex
>=
This
->
nb_attributes
)
return
E_INVALIDARG
;
if
(
nIndex
>=
This
->
nb_attributes
||
nIndex
<
0
)
return
E_INVALIDARG
;
if
(
!
pValue
||
!
nValue
)
return
E_POINTER
;
*
nValue
=
SysStringLen
(
This
->
szValue
[
nIndex
]);
*
pValue
=
This
->
szValue
[
nIndex
];
...
...
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