[PATCH] 9p: Make uname and remotename parsing more robust

2008-02-22 Thread Markus Armbruster
match_strcpy() is a somewhat creepy function: the caller needs to make sure that the destination buffer is big enough, and when he screws up or forgets, match_strcpy() happily overruns the buffer. There's exactly one customer: v9fs_parse_options(). I believe it currently can't overflow its

[PATCH] 9p: Make uname and remotename parsing more robust

2008-02-22 Thread Markus Armbruster
match_strcpy() is a somewhat creepy function: the caller needs to make sure that the destination buffer is big enough, and when he screws up or forgets, match_strcpy() happily overruns the buffer. There's exactly one customer: v9fs_parse_options(). I believe it currently can't overflow its