[ros-diffs] [greatlrd] 20330: do not BSD in some test apps I have. it did not check if input buffer for the convert string was NULL or not.

greatlrd at svn.reactos.com greatlrd at svn.reactos.com
Sun Dec 25 19:53:43 CET 2005


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++;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051225/4ea16c67/attachment.html


More information about the Ros-diffs mailing list