diff options
author | 2014-12-04 19:55:49 +0000 | |
---|---|---|
committer | 2014-12-04 19:55:49 +0000 | |
commit | 23bf04505d3b6af645a3ccaef50258d8ea1f69bd (patch) | |
tree | 84e7a64633271adce3d0e6577b5d9654f58abf6e | |
parent | in the SYNOPSIS, add .Fo and first .Fn arguments to the names table (diff) | |
download | wireguard-openbsd-23bf04505d3b6af645a3ccaef50258d8ea1f69bd.tar.xz wireguard-openbsd-23bf04505d3b6af645a3ccaef50258d8ea1f69bd.zip |
replace an overlapping memcpy with memmove, ok deraadt tedu
-rw-r--r-- | usr.sbin/bgpd/session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index b84ada17a2c..f95a237c9f0 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.336 2014/10/25 03:23:49 lteo Exp $ */ +/* $OpenBSD: session.c,v 1.337 2014/12/04 19:55:49 sthen Exp $ */ /* * Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org> @@ -1890,7 +1890,7 @@ session_process_msg(struct peer *p) if (rpos < av) { left = av - rpos; - memcpy(&p->rbuf->buf, p->rbuf->buf + rpos, left); + memmove(&p->rbuf->buf, p->rbuf->buf + rpos, left); p->rbuf->wpos = left; } else p->rbuf->wpos = 0; |