FreeBSD Security Advisory FreeBSD-SA-15:24.rpcbind

Xin Li delphij at delphij.net
Wed Sep 30 19:54:27 UTC 2015


Hi,

Can you make this change and see if it helps?

Index: rpcb_svc_com.c
===================================================================
--- rpcb_svc_com.c	(revision 288421)
+++ rpcb_svc_com.c	(working copy)
@@ -1052,7 +1052,7 @@ static bool_t
 netbuf_copybuf(struct netbuf *dst, const struct netbuf *src)
 {

-	assert(dst->buf == NULL);
+	assert(dst->len == 0 || dst->buf == NULL);

 	if ((dst->buf = malloc(src->len)) == NULL)
 		return (FALSE);

Cheers,
-- 
Xin LI <delphij at delphij.net>    https://www.delphij.net/
FreeBSD - The Power to Serve!           Live free or die

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-security/attachments/20150930/9c95f90a/attachment.bin>


More information about the freebsd-security mailing list