]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nwfilter: Fix sscanf off-by-one error in virNWFilterSnoopLeaseFileLoad
authorErik Skultety <eskultet@redhat.com>
Tue, 2 Jun 2015 07:25:04 +0000 (09:25 +0200)
committerErik Skultety <eskultet@redhat.com>
Tue, 2 Jun 2015 08:16:29 +0000 (10:16 +0200)
commit152e315433f2ff69a5e91a2269812918da2ce091
tree38ff7bba19d85d2e359054b405fc84c5a4ded594
parentf88750b93156d57c9eac8e075d5fd7e98398925c
nwfilter: Fix sscanf off-by-one error in virNWFilterSnoopLeaseFileLoad

We allocate 16 bytes for IPv4 address and 55 bytes for interface
key, therefore we should read up to 15/54 bytes and let the last byte
reserved for terminating null byte in sscanf.

https://bugzilla.redhat.com/show_bug.cgi?id=1226400
src/nwfilter/nwfilter_dhcpsnoop.c