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
abbb3617
Commit
abbb3617
authored
Jun 29, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Jun 29, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Set *end to NULL when strtod is called with NULL pointer string.
parent
ffcb4e07
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
string.c
dlls/msvcrt/string.c
+5
-2
string.c
dlls/msvcrt/tests/string.c
+1
-1
No files found.
dlls/msvcrt/string.c
View file @
abbb3617
...
...
@@ -317,8 +317,11 @@ static double strtod_helper(const char *str, char **end, MSVCRT__locale_t locale
if
(
err
)
*
err
=
0
;
else
if
(
!
MSVCRT_CHECK_PMT
(
str
!=
NULL
))
return
0
;
else
if
(
!
MSVCRT_CHECK_PMT
(
str
!=
NULL
))
{
if
(
end
)
*
end
=
NULL
;
return
0
;
}
if
(
!
locale
)
locinfo
=
get_locinfo
();
...
...
dlls/msvcrt/tests/string.c
View file @
abbb3617
...
...
@@ -1694,7 +1694,7 @@ static void test__strtod(void)
d
=
strtod
(
NULL
,
&
end
);
ok
(
almost_equal
(
d
,
0
.
0
),
"d = %lf
\n
"
,
d
);
ok
(
errno
==
EINVAL
,
"errno = %x
\n
"
,
errno
);
todo_wine
ok
(
!
end
,
"incorrect end ptr %p
\n
"
,
end
);
ok
(
!
end
,
"incorrect end ptr %p
\n
"
,
end
);
errno
=
EBADF
;
d
=
p__strtod_l
(
NULL
,
NULL
,
NULL
);
...
...
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