rpms/saoimage/F-10 saoimage-1.35.1-bpp.patch, NONE, 1.1 saoimage-1.35.1-inc.patch, NONE, 1.1

Lubomir Rintel lkundrak at fedoraproject.org
Mon Nov 3 22:54:31 UTC 2008


Author: lkundrak

Update of /cvs/pkgs/rpms/saoimage/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv32536/F-10

Added Files:
	saoimage-1.35.1-bpp.patch saoimage-1.35.1-inc.patch 
Log Message:
Update to what was actually reviewed

saoimage-1.35.1-bpp.patch:

--- NEW FILE saoimage-1.35.1-bpp.patch ---
With depth > 16 pixels occupy more than two octets. Let XCreateImage()
calculate it.

Lubomir Rintel (Fedora Astronomy) <lkundrak at v3.sk>

--- saoimage-1.35.1/wndwinit.c.bpp	2008-10-26 21:56:01.000000000 +0100
+++ saoimage-1.35.1/wndwinit.c	2008-10-26 21:55:33.000000000 +0100
@@ -185,7 +185,7 @@
 
   ximage = XCreateImage(desktop.display, color.visual, color.screen_depth,
 			dispbox.image.format, 0, malloc(4), 2, 2,
-			dispbox.image.bitmap_pad, (unsigned)2);
+			dispbox.image.bitmap_pad, (unsigned)0);
   set_window_basics(&dispbox, desktop.ID, border_pixel,
 		    (int)desktop.attrs.background_pixel, ximage);
   set_window_basics(&panbox, desktop.ID, border_pixel,

saoimage-1.35.1-inc.patch:

--- NEW FILE saoimage-1.35.1-inc.patch ---
Include relevant headers so that FORTIFY_SOURCE is in effect
for potentially vulnerable functions.

Lubomir Rintel (Fedora Astronomy) <lkundrak at v3.sk>

--- saoimage-1.35.1/vms/ghstname.c.inc	2008-10-26 19:27:11.000000000 +0100
+++ saoimage-1.35.1/vms/ghstname.c	2008-10-26 19:27:27.000000000 +0100
@@ -1,3 +1,5 @@
+#include <string.h>
+
 gethostname (char *node, int nodelen)
 {
 	char	*p, tmp[32];
@@ -9,4 +11,4 @@
 	strncpy (node, tmp, nodelen);
 	node[nodelen] = '\0';
 }
-               
\ No newline at end of file
+               
--- saoimage-1.35.1/vms/zfiovi.c.inc	2008-10-26 19:27:27.000000000 +0100
+++ saoimage-1.35.1/vms/zfiovi.c	2008-10-26 19:27:39.000000000 +0100
@@ -53,6 +53,7 @@
 #include <iodef.h>	/* I/O definitions			*/
 #include <ssdef.h>	/* System status definitions		*/
 #include <syidef.h>	/* Get system info definitions		*/
+#include <string.h>
 
 #ifdef IMTOOL
 #define import_spp	/* Import the IRAF SPP constants	*/
--- saoimage-1.35.1/mainkey.c.inc	2008-10-26 19:28:12.000000000 +0100
+++ saoimage-1.35.1/mainkey.c	2008-10-26 19:28:21.000000000 +0100
@@ -16,6 +16,7 @@
  */
 
 #include <stdio.h>
+#include <string.h>
 #include <X11/Xlib.h>		/*  X window stuff  */
 #include <X11/Xutil.h>		/*  X window manager stuff  */
 #include <X11/keysym.h>
--- saoimage-1.35.1/ctrlfile.c.inc	2008-10-26 19:27:52.000000000 +0100
+++ saoimage-1.35.1/ctrlfile.c	2008-10-26 19:28:03.000000000 +0100
@@ -19,6 +19,7 @@
  */
 
 #include <stdio.h>		/* FILE, stderr, NULL, etc. */
+#include <string.h>
 #include <ctype.h>		/* macros for isupper, tolower, etc */
 #include <sys/types.h>		/* needed for lstat */
 #include <sys/stat.h>		/* needed for lstat, struct stat */
--- saoimage-1.35.1/imgflip.c.inc	2008-10-26 19:28:38.000000000 +0100
+++ saoimage-1.35.1/imgflip.c	2008-10-26 19:28:50.000000000 +0100
@@ -18,6 +18,7 @@
  *		{n} <who> -- <does what> -- <when>
  */
 
+#include <string.h>
 
 /*  Subroutine:	xflip_buf
  *  Purpose:	Flip buf to make Y coordinates run in opposite direction
--- saoimage-1.35.1/irafimtl.c.inc	2008-10-26 19:28:21.000000000 +0100
+++ saoimage-1.35.1/irafimtl.c	2008-10-26 19:28:38.000000000 +0100
@@ -26,6 +26,7 @@
 #ifdef IMTOOL
 
 #include <stdio.h>		/* stderr, FILE, NULL, etc. */
+#include <string.h>
 #include <X11/Xlib.h>		/* get X types and constants */
 #include <X11/Xutil.h>		/* X window manager stuff */
 #include "hfiles/constant.h"	/* define codes */
--- saoimage-1.35.1/shfile.c.inc	2008-10-26 19:28:50.000000000 +0100
+++ saoimage-1.35.1/shfile.c	2008-10-26 19:28:58.000000000 +0100
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <string.h>
 #include <sys/types.h>
 #include <sys/file.h>
 #include <X/Xlib.h>
--- saoimage-1.35.1/csrsave.c.inc	2008-10-26 19:27:39.000000000 +0100
+++ saoimage-1.35.1/csrsave.c	2008-10-26 19:27:52.000000000 +0100
@@ -22,6 +22,7 @@
  */
 
 #include <stdio.h>		/* stderr, NULL, etc. */
+#include <string.h>
 #include <X11/Xlib.h>		/* X window stuff */
 #include <X11/Xutil.h>		/* X window manager stuff */
 #include "hfiles/color.h"	/* cursor colors needed by Cursor.h */
--- saoimage-1.35.1/clrread.c.inc	2008-10-26 19:28:03.000000000 +0100
+++ saoimage-1.35.1/clrread.c	2008-10-26 19:28:12.000000000 +0100
@@ -17,6 +17,7 @@
  */
 
 #include <stdio.h>		/* stderr, NULL, etc. */
+#include <string.h>
 #include <ctype.h>		/* toupper, isalpha, etc. */
 #include "hfiles/colormap.h"	/* color table storage structs */
 // Forward declarations
--- saoimage-1.35.1/btnlib/label.c.inc	2008-10-26 19:28:58.000000000 +0100
+++ saoimage-1.35.1/btnlib/label.c	2008-10-26 19:29:09.000000000 +0100
@@ -1,3 +1,5 @@
+#include <string.h>
+
 #ifndef lint
 static char SccsId[] = "%W%  %G%";
 #endif




More information about the fedora-extras-commits mailing list