commit | a88086e09876f468356cfec5319ff62004e36a1b | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Thu Apr 13 22:42:31 2017 +0300 |
committer | Jens Axboe <axboe@fb.com> | Fri Apr 14 14:08:54 2017 -0600 |
tree | 3d4a3827e09b99da4c0a55b2a4d3d3b65aaebbd0 | |
parent | 00e043936e9a1c274c29366c7ecd9e17c79418e6 [diff] |
net: off by one in inet6_pton() If "scope_len" is sizeof(scope_id) then we would put the NUL terminator one space beyond the end of the buffer. Fixes: b1a951fe469e ("net/utils: generic inet_pton_with_scope helper") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Jens Axboe <axboe@fb.com>