[Parted-commits] GNU Parted Official Repository: Changes to 'master'

Jim Meyering meyering at alioth.debian.org
Mon May 9 18:59:18 UTC 2011


 libparted/labels/fdasd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 311e9a7ec0ed5a2e9df855640e53eba534662376
Author: Brian C. Lane <bcl at redhat.com>
Date:   Thu Apr 21 09:36:08 2011 +0200

    s390/dasd: avoid buffer overrun upon API mismatch diagnostic
    
    * libparted/labels/fdasd.c (fdasd_check_api_version): The static
    buffer for the error string was too small.  Double its length.
    This resolves http://bugzilla.redhat.com/693852

diff --git a/libparted/labels/fdasd.c b/libparted/labels/fdasd.c
index 6d708f6..e235dd3 100644
--- a/libparted/labels/fdasd.c
+++ b/libparted/labels/fdasd.c
@@ -754,7 +754,7 @@ fdasd_check_api_version (fdasd_anchor_t *anc, int f)
 {
 	PDEBUG
 	int api;
-	char s[LINE_LENGTH];
+	char s[2*LINE_LENGTH];
 
         struct stat st;
         if (fstat (f, &st) == 0 && S_ISREG (st.st_mode)) {



More information about the Parted-commits mailing list