diff options
author | Jeff Layton <jlayton@redhat.com> | 2009-03-23 08:12:14 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2009-03-23 08:12:14 -0400 |
commit | 7f1f9985cf510b087e7a817597094acba9143795 (patch) | |
tree | 8b2ee999d0b14ca950efd649b47963910e49b4d3 /linux-nfs/NEW | |
parent | 690b2eb64e44dc96db68900dd17ea4586b51966e (diff) | |
download | nfs-utils-7f1f9985cf510b087e7a817597094acba9143795.tar.gz nfs-utils-7f1f9985cf510b087e7a817597094acba9143795.tar.xz nfs-utils-7f1f9985cf510b087e7a817597094acba9143795.zip |
gssd: NULL-terminate buffer after read in read_service_info (try #2)
Valgrind complains that we're passing an unintialized buffer to sscanf
here. The main problem seems to be that we're not ensuring that the
buffer is NULL terminated before we pass it off.
This is the second version of this patch, the first one did not increase
the buffer allocation by 1 which could have led to clobbering the next
byte on the stack if nbytes == INFOBUFLEN.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'linux-nfs/NEW')
0 files changed, 0 insertions, 0 deletions