Searched hist:c62da5853de5564e367932185500f96ab70a6f7c (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/orangefs/ |
H A D | namei.c | diff c62da5853de5564e367932185500f96ab70a6f7c Mon Feb 29 15:07:35 CST 2016 Martin Brandenburg <martin@omnibond.com> orangefs: Avoid symlink upcall if target is too long.
Previously the client-core detected this condition by sheer luck!
Since we used strncpy, no NUL byte would be included on the name. The client-core would call strlen, which would read past the end of its buffer, but return a number large enough that the client-core would return ENAMETOOLONG.
Signed-off-by: Martin Brandenburg <martin@omnibond.com> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
|