]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix buffer overrun in strtod_l
authorLiubov Dmitrieva <ldmitrie@sourceware.org>
Thu, 19 Sep 2013 12:51:13 +0000 (16:51 +0400)
committerLiubov Dmitrieva <ldmitrie@sourceware.org>
Thu, 19 Sep 2013 12:52:04 +0000 (16:52 +0400)
ChangeLog
stdlib/strtod_l.c

index f2cf3371a8ce47349a1e90dbea7ab8e26b3ce04e..a7a74598b51586c86db08c1f097c3692f9a22aa8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
+
+       * stdlib/strtod_l.c: Fix buffer overrun.
+
 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
        * benchtests/Makefile (bench): Add sincos.
index 8f60653fb0a722a7214ec5d586174c19a0f16029..90541cd48fa1ca33c1f079f4ddfb170ece7a5fb3 100644 (file)
@@ -1752,7 +1752,7 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc)
              got_limb;
            }
 
-         for (i = densize; num[i] == 0 && i >= 0; --i)
+         for (i = densize; i >= 0 && num[i] == 0; --i)
            ;
          return round_and_return (retval, exponent - 1, negative,
                                   quot, BITS_PER_MP_LIMB - 1 - used,