[PATCH 5.1 22/40] tipc: Avoid copying bytes beyond the supplied data