m_copymdata() bug?

Brandon Gooch jamesbrandongooch at gmail.com
Mon Apr 26 21:18:08 UTC 2010


On Tue, Apr 13, 2010 at 8:30 AM, Jacques Fourie
<jacques.fourie at gmail.com> wrote:
> It seems as if the m_copymdata() function defined in uipc_mbuf.c has a
> bug. It uses m_apply to copy data from the source mbuf to the target
> but in the callback function m_bcopyxxx() the arguments are
> interpreted in the wrong order. Swapping the 's' and 't' arguments in
> the declaration of m_bcopyxxx() fixes the problem for me.

Perhaps you should file a PR with an included patch:

http://www.freebsd.org/doc/en_US.ISO8859-1/articles/problem-reports/article.html

http://www.freebsd.org/send-pr.html

Thanks!

-Brandon


More information about the freebsd-net mailing list