diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2005-03-09 14:07:01 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2005-03-09 14:07:01 +0000 |
commit | eb28d5d96266fd4e93ad4813e0b80a31833a4e64 (patch) | |
tree | 7d7e1aae04b5a6a78db8125ac902b3b0ca0d7cb4 /usr.sbin/bgpd/imsg.c | |
parent | 6c914bfdaf6f8f4abd9e5eb5e625364526a37066 (diff) |
when, after processing all complete imsgs we found in the buffer,
there are some bytes left (less than an imsg header, or less than the
imsg header len field says) we copy it to the very beginning of the buffer.
use memmove instead of memcpy since it is not guaranteed that there's no
overlap. while memcpy on OpenBSD is safe, it might not elsewhere, and
we want our code to be correct anyways.
funny enough theo and I talked at length about that last week in dublin,
and I said I believe I had no memcpys with the chance of overlap in ntpd/bgpd -
well, here is one, and Alexander von Gernler <grunk@pestilenz.org> pointed
me to it.
Diffstat (limited to 'usr.sbin/bgpd/imsg.c')
0 files changed, 0 insertions, 0 deletions