K 10 svn:author V 3 cem K 8 svn:date V 27 2017-09-29T15:53:26.085539Z K 7 svn:log V 519 netsmb: Fix buggy/racy smb_strdupin() smb_strdupin() tried to roll a copyin() based strlen to allocate a buffer and then blindly copyin that size. Of course, a malicious user program could simultaneously manipulate the buffer, resulting in a non-terminated string being copied. Later assumptions in the code rely upon the string being nul-terminated. Just use copyinstr() and drop the racy sizing. PR: 222687 Reported by: Meng Xu Security: possible local DoS Sponsored by: Dell EMC Isilon END