Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
33e35025
Commit
33e35025
authored
Jul 23, 2008
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Fix for accessing uninitialized memory.
parent
68963c9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
saxreader.c
dlls/msxml3/saxreader.c
+16
-2
No files found.
dlls/msxml3/saxreader.c
View file @
33e35025
...
...
@@ -1130,12 +1130,26 @@ static HRESULT WINAPI isaxxmlreader_parse(
data
=
xmlChar_from_wchar
(
V_BSTR
(
&
varInput
));
xmlSetupParserForBuffer
(
locator
->
pParserCtxt
,
data
,
NULL
);
break
;
case
VT_ARRAY
|
VT_UI1
:
hr
=
SafeArrayAccessData
(
V_ARRAY
(
&
varInput
),
(
void
**
)
&
data
);
case
VT_ARRAY
|
VT_UI1
:
{
void
*
pSAData
;
LONG
lBound
,
uBound
;
ULONG
dataRead
;
hr
=
SafeArrayGetLBound
(
V_ARRAY
(
&
varInput
),
1
,
&
lBound
);
if
(
hr
!=
S_OK
)
break
;
hr
=
SafeArrayGetUBound
(
V_ARRAY
(
&
varInput
),
1
,
&
uBound
);
if
(
hr
!=
S_OK
)
break
;
dataRead
=
(
uBound
-
lBound
)
*
SafeArrayGetElemsize
(
V_ARRAY
(
&
varInput
));
data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dataRead
+
1
);
if
(
!
data
)
break
;
hr
=
SafeArrayAccessData
(
V_ARRAY
(
&
varInput
),
(
void
**
)
&
pSAData
);
if
(
hr
!=
S_OK
)
break
;
memcpy
(
data
,
pSAData
,
dataRead
);
data
[
dataRead
]
=
'\0'
;
xmlSetupParserForBuffer
(
locator
->
pParserCtxt
,
data
,
NULL
);
SafeArrayUnaccessData
(
V_ARRAY
(
&
varInput
));
break
;
}
case
VT_UNKNOWN
:
case
VT_DISPATCH
:
{
IPersistStream
*
persistStream
;
...
...
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