PERFORCE change 90144 for review

soc-andrew soc-andrew at FreeBSD.org
Sat Jan 21 19:48:13 PST 2006


http://perforce.freebsd.org/chv.cgi?CH=90144

Change 90144 by soc-andrew at soc-andrew_serv on 2006/01/22 03:47:10

	Fix a problem where the size of the malloced space is 1 byte too small in libdfui

Affected files ...

.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/lib/dfui/conn_tcp.c#2 edit

Differences ...

==== //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/lib/dfui/conn_tcp.c#2 (text+ko) ====

@@ -396,7 +396,7 @@
 	 * Construct a message.
 	 */
 
-	fmsg = malloc(strlen(msg) + 1);
+	fmsg = malloc(strlen(msg) + 2);
 	fmsg[0] = msgtype;
 	strcpy(fmsg + 1, msg);
 	dfui_debug("SEND<<%s>>\n", fmsg);


More information about the p4-projects mailing list