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
a75cc9e6
Commit
a75cc9e6
authored
Nov 27, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Only allow ASCII characters in number conversion.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b00e2df3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
element.c
dlls/msxml3/element.c
+1
-1
nodelist.c
dlls/msxml3/nodelist.c
+1
-1
nodemap.c
dlls/msxml3/nodemap.c
+1
-1
selection.c
dlls/msxml3/selection.c
+1
-1
No files found.
dlls/msxml3/element.c
View file @
a75cc9e6
...
...
@@ -520,7 +520,7 @@ static inline HRESULT variant_from_dt(XDR_DT dt, xmlChar* str, VARIANT* v)
if
(
*
p
==
'.'
)
{
p
++
;
while
(
isdigitW
(
*
p
)
)
p
++
;
while
(
*
p
>=
'0'
&&
*
p
<=
'9'
)
p
++
;
}
}
...
...
dlls/msxml3/nodelist.c
View file @
a75cc9e6
...
...
@@ -312,7 +312,7 @@ static HRESULT xmlnodelist_get_dispid(IUnknown *iface, BSTR name, DWORD flags, D
WCHAR
*
ptr
;
int
idx
=
0
;
for
(
ptr
=
name
;
*
ptr
&&
isdigitW
(
*
ptr
)
;
ptr
++
)
for
(
ptr
=
name
;
*
ptr
>=
'0'
&&
*
ptr
<=
'9'
;
ptr
++
)
idx
=
idx
*
10
+
(
*
ptr
-
'0'
);
if
(
*
ptr
)
return
DISP_E_UNKNOWNNAME
;
...
...
dlls/msxml3/nodemap.c
View file @
a75cc9e6
...
...
@@ -371,7 +371,7 @@ static HRESULT xmlnodemap_get_dispid(IUnknown *iface, BSTR name, DWORD flags, DI
WCHAR
*
ptr
;
int
idx
=
0
;
for
(
ptr
=
name
;
*
ptr
&&
isdigitW
(
*
ptr
)
;
ptr
++
)
for
(
ptr
=
name
;
*
ptr
>=
'0'
&&
*
ptr
<=
'9'
;
ptr
++
)
idx
=
idx
*
10
+
(
*
ptr
-
'0'
);
if
(
*
ptr
)
return
DISP_E_UNKNOWNNAME
;
...
...
dlls/msxml3/selection.c
View file @
a75cc9e6
...
...
@@ -595,7 +595,7 @@ static HRESULT domselection_get_dispid(IUnknown *iface, BSTR name, DWORD flags,
WCHAR
*
ptr
;
int
idx
=
0
;
for
(
ptr
=
name
;
*
ptr
&&
isdigitW
(
*
ptr
)
;
ptr
++
)
for
(
ptr
=
name
;
*
ptr
>=
'0'
&&
*
ptr
<=
'9'
;
ptr
++
)
idx
=
idx
*
10
+
(
*
ptr
-
'0'
);
if
(
*
ptr
)
return
DISP_E_UNKNOWNNAME
;
...
...
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