GNU C Library master sources branch master updated. glibc-2.28.9000-371-gb93f405

ppluzhnikov@sourceware.org ppluzhnikov@sourceware.org
Sat Dec 8 22:42:00 GMT 2018


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  b93f4052fc171f456c8f594d4ae4aeb02ec5b3b6 (commit)
      from  7c9a7c68363051cfc5fa1ebb96b3b2c1f82dcb76 (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=b93f4052fc171f456c8f594d4ae4aeb02ec5b3b6

commit b93f4052fc171f456c8f594d4ae4aeb02ec5b3b6
Author: Paul Pluzhnikov <ppluzhnikov@google.com>
Date:   Sat Dec 8 10:46:59 2018 -0800

    Fix potential stack overflow [BZ #23490]
    
    Since we are expecting the exact "IBT" string, adjust stack buffer size
    and scanf format accordingly.

diff --git a/ChangeLog b/ChangeLog
index 7c4b061..03cbe04 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-12-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
+
+	[BZ #23490]
+	* sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
+	(do_test): Adjust buffer size and fix format.
+
 2018-12-07  DJ Delorie  <dj@redhat.com>
 
 	[BZ #23907]
diff --git a/sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c b/sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
index 0531074..259ef44 100644
--- a/sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
+++ b/sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
@@ -44,9 +44,9 @@ sig_handler (int signo)
 static int
 do_test (void)
 {
-  char buf[20];
+  char buf[4];
 
-  if (scanf ("%20s", buf) != 1)
+  if (scanf ("%3s", buf) != 1)
     FAIL_UNSUPPORTED ("IBT not supported");
 
   if (strcmp (buf, "IBT") != 0)

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

Summary of changes:
 ChangeLog                                        |    6 ++++++
 sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c |    4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)


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



More information about the Glibc-cvs mailing list