Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 9cb152c60d959dfaa2e90c575496be57 > files > 1

gcx-0.9.11-9.fc12.src.rpm

Don't overwrite the stack canary with out-of-bound write.

Lubomir Rintel <lkundrak@v3.sk>

diff -urp gcx-0.9.11/src/ccd/ccd_frame.c gcx-0.9.11.fixed/src/ccd/ccd_frame.c
--- gcx-0.9.11/src/ccd/ccd_frame.c	2007-03-26 15:24:14.000000000 +0200
+++ gcx-0.9.11.fixed/src/ccd/ccd_frame.c	2009-04-06 21:40:19.161312909 +0200
@@ -1348,7 +1348,7 @@ static int frame_to_float(struct ccd_fra
  * or -1 for an error */
 int fits_get_double(struct ccd_frame *fr, char *kwd, double *v)
 {
-	char vs[FITS_HCOLS+1];
+	char vs[FITS_HCOLS+2];
 	FITS_row *row;
 	char * end;
 	double vv;