The readlink()
function reads where a link points to. It makes no effort to NULL-terminate its second argument, buffer
. Instead, it just returns the number of characters it has written.
Non-Compliant
...
Code Example
If len
is equal to sizeof(buf)
, the NULL terminator will be written one byte past the end of buf
.
...