This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.18-128-gd84f25c


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  d84f25c7d871dac31ed3ef136ebfb80d3ac73601 (commit)
      from  7849ff938cf30d6a381ee864048bc0b3e8c96475 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=d84f25c7d871dac31ed3ef136ebfb80d3ac73601

commit d84f25c7d871dac31ed3ef136ebfb80d3ac73601
Author: Liubov Dmitrieva <ldmitrie@sourceware.org>
Date:   Thu Sep 19 16:51:13 2013 +0400

    Fix buffer overrun in strtod_l

diff --git a/ChangeLog b/ChangeLog
index f2cf337..a7a7459 100644
--- 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.
diff --git a/stdlib/strtod_l.c b/stdlib/strtod_l.c
index 8f60653..90541cd 100644
--- a/stdlib/strtod_l.c
+++ b/stdlib/strtod_l.c
@@ -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,

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog         |    4 ++++
 stdlib/strtod_l.c |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]