do not BSD in some test apps I have. it did not check if input buffer
for the convert string was NULL or not.
Modified: trunk/reactos/lib/crt/stdlib/strtod.c
_____
Modified: trunk/reactos/lib/crt/stdlib/strtod.c
--- trunk/reactos/lib/crt/stdlib/strtod.c 2005-12-25 15:00:05 UTC
(rev 20329)
+++ trunk/reactos/lib/crt/stdlib/strtod.c 2005-12-25 18:53:39 UTC
(rev 20330)
@@ -21,6 +21,10 @@
sign = 1;
e = 0;
esign = 1;
+
+ if (s == NULL)
+ return r;
+
while ((*s == ' ') || (*s == '\t'))
s++;
Show replies by date