public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-misc/shout/files: shout-0.8.0-overflow.patch
@ 2011-05-07 17:12 Christoph Mende (angelos)
  0 siblings, 0 replies; only message in thread
From: Christoph Mende (angelos) @ 2011-05-07 17:12 UTC (permalink / raw
  To: gentoo-commits

angelos     11/05/07 17:12:16

  Added:                shout-0.8.0-overflow.patch
  Log:
  Fix possible overflows (bug #337527)
  
  (Portage version: 2.2.0_alpha31/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  net-misc/shout/files/shout-0.8.0-overflow.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/shout/files/shout-0.8.0-overflow.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/shout/files/shout-0.8.0-overflow.patch?rev=1.1&content-type=text/plain

Index: shout-0.8.0-overflow.patch
===================================================================
diff --git a/shout.c b/shout.c
index 0a1bded..00bae8d 100644
--- a/shout.c
+++ b/shout.c
@@ -441,7 +441,7 @@ post_config ()
 			perror ("fopen");
 			px_shutdown (44);
 		}
-		my_snprintf (pid, BUFSIZE, "%d\n", (int) getpid ());
+		my_snprintf (pid, 30, "%d\n", (int) getpid ());
 		fputs (pid, fp);
 		fclose (fp);
 	}
diff --git a/sock.c b/sock.c
index 4a67c00..3b4e539 100644
--- a/sock.c
+++ b/sock.c
@@ -81,7 +81,7 @@ sock_connect (char *hostname, int port)
 			sock_close (sockfd);
 			return -1;
 		}
-		memcpy (&server.sin_addr, &sin.sin_addr, sizeof (sin));
+		memcpy (&server.sin_addr, &sin.sin_addr, sizeof (sin.sin_addr));
 	} else {
 		host = gethostbyname (hostname);
 		if (host == NULL) {






^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-07 17:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-07 17:12 [gentoo-commits] gentoo-x86 commit in net-misc/shout/files: shout-0.8.0-overflow.patch Christoph Mende (angelos)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox