Page MenuHomeFreeBSD

udp: Prefer memcpy() over bcopy
ClosedPublic

Authored by zlei on Nov 23 2024, 4:05 PM.
Tags
None
Referenced Files
F107062871: D47713.diff
Thu, Jan 9, 12:48 PM
Unknown Object (File)
Wed, Jan 1, 7:23 AM
Unknown Object (File)
Tue, Dec 31, 11:41 PM
Unknown Object (File)
Tue, Dec 31, 7:59 AM
Unknown Object (File)
Mon, Dec 30, 8:03 AM
Unknown Object (File)
Sun, Dec 29, 7:23 AM
Unknown Object (File)
Sat, Dec 28, 6:59 AM
Unknown Object (File)
Fri, Dec 27, 11:26 AM
Subscribers

Details

Summary

The variable b[] is on stack, thus can not overlap with ipov which
points to heap area, so prefer memcpy() over memmove(), aka bcopy().

No functional change intended.

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped