guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] GNU Guile branch, master, updated. release_1-9-13-40-gf2


From: Julian Graham
Subject: [Guile-commits] GNU Guile branch, master, updated. release_1-9-13-40-gf25e1b6
Date: Fri, 12 Nov 2010 13:46:08 +0000

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 Guile".

http://git.savannah.gnu.org/cgit/guile.git/commit/?id=f25e1b6713f06ddbe6d084e6ffb2e80e099d77f6

The branch, master has been updated
       via  f25e1b6713f06ddbe6d084e6ffb2e80e099d77f6 (commit)
      from  16f0612864abae907ddc8b9f9eb982c9ebf22943 (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 -----------------------------------------------------------------
commit f25e1b6713f06ddbe6d084e6ffb2e80e099d77f6
Author: Julian Graham <address@hidden>
Date:   Fri Nov 12 08:45:09 2010 -0500

    Fix buffer over-read in port encoding scan.
    
    * libguile/read.c (scm_i_scan_for_encoding): Add a NULL terminator to the
      end of header to prevent over-read by subsequent call to strstr.

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

Summary of changes:
 libguile/read.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libguile/read.c b/libguile/read.c
index 609285c..07a4ffd 100644
--- a/libguile/read.c
+++ b/libguile/read.c
@@ -1646,6 +1646,7 @@ scm_i_scan_for_encoding (SCM port)
     return NULL;
 
   bytes_read = scm_c_read (port, header, SCM_ENCODING_SEARCH_SIZE);
+  header[bytes_read] = NULL;
 
   scm_seek (port, scm_from_int (0), scm_from_int (SEEK_SET));
 


hooks/post-receive
-- 
GNU Guile



reply via email to

[Prev in Thread] Current Thread [Next in Thread]