Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6]: src/lib/libc/rpc Pull up following revision(s) (requested by ...
details: https://anonhg.NetBSD.org/src/rev/24f9750fa02e
branches: netbsd-6
changeset: 775748:24f9750fa02e
user: riz <riz%NetBSD.org@localhost>
date: Sun Mar 31 20:26:33 2013 +0000
description:
Pull up following revision(s) (requested by christos in ticket #854):
lib/libc/rpc/clnt_vc.c: revision 1.19
PR/13082: Thorsten Brehm: Fix wrong memcpy that caused possible memory
corruption. XXX: pullup to 6.
diffstat:
lib/libc/rpc/clnt_vc.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r bb04c79c79e7 -r 24f9750fa02e lib/libc/rpc/clnt_vc.c
--- a/lib/libc/rpc/clnt_vc.c Sun Mar 31 20:20:07 2013 +0000
+++ b/lib/libc/rpc/clnt_vc.c Sun Mar 31 20:26:33 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clnt_vc.c,v 1.17.8.1 2013/03/14 22:03:09 riz Exp $ */
+/* $NetBSD: clnt_vc.c,v 1.17.8.2 2013/03/31 20:26:33 riz Exp $ */
/*
* Copyright (c) 2010, Oracle America, Inc.
@@ -38,7 +38,7 @@
static char *sccsid = "@(#)clnt_tcp.c 2.2 88/08/01 4.0 RPCSRC";
static char sccsid[] = "@(#)clnt_vc.c 1.19 89/03/16 Copyr 1988 Sun Micro";
#else
-__RCSID("$NetBSD: clnt_vc.c,v 1.17.8.1 2013/03/14 22:03:09 riz Exp $");
+__RCSID("$NetBSD: clnt_vc.c,v 1.17.8.2 2013/03/31 20:26:33 riz Exp $");
#endif
#endif
@@ -264,8 +264,8 @@
ct->ct_addr.buf = malloc((size_t)raddr->maxlen);
if (ct->ct_addr.buf == NULL)
goto fooy;
- memcpy(ct->ct_addr.buf, &raddr->buf, (size_t)raddr->len);
- ct->ct_addr.len = raddr->maxlen;
+ memcpy(ct->ct_addr.buf, raddr->buf, (size_t)raddr->len);
+ ct->ct_addr.len = raddr->len;
ct->ct_addr.maxlen = raddr->maxlen;
/*
Home |
Main Index |
Thread Index |
Old Index