diff options
author | Todd Vierling <todd.vierling@oracle.com> | 2014-09-19 10:32:55 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2014-09-19 10:32:55 -0400 |
commit | 7f5f7fe118b87fbc6a2c6cc52aff808564d907a4 (patch) | |
tree | 5df8c5fc97da2f3f5406f237f32149cfefb150c4 /support | |
parent | 0a7b6854e50eca6613f525c8e1b7978c10372863 (diff) | |
download | nfs-utils-7f5f7fe118b87fbc6a2c6cc52aff808564d907a4.tar.gz nfs-utils-7f5f7fe118b87fbc6a2c6cc52aff808564d907a4.tar.xz nfs-utils-7f5f7fe118b87fbc6a2c6cc52aff808564d907a4.zip |
exportfs: Properly parse IPv6 literal strings with null termination
The original implementation was using strncpy() with a truncation
length to an uninitialized stack buffer, leaving a string that
was only null terminated by luck.
While here, change to use no-copy semantics (no extra buffer) to
avoid buffer overflows altogether. exportfs already modifies argv
contents elsewhere, so this doesn't break anything anew.
Fixes: 4663c648 (exportfs: Support raw IPv6 addresses with
"client:/path")
Signed-off-by: Todd Vierling <todd.vierling@oracle.com>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support')
0 files changed, 0 insertions, 0 deletions