commit | 55a10996034cb2e633f0437cedd97f345183c0ec | [log] [tgz] |
---|---|---|
author | Kevin Wolf <kwolf@redhat.com> | Fri Jan 30 20:37:55 2015 +0100 |
committer | Michael Tokarev <mjt@tls.msk.ru> | Tue Feb 10 09:27:20 2015 +0300 |
tree | 27dc6f669c1ed3af7a56fa026a05b659fa5ee114 | |
parent | 02f292d9051f616511f482275b571c6153e3a48b [diff] |
qemu-sockets: Fix buffer overflow in inet_parse() The size of the stack allocated host[] array didn't account for the terminating '\0' byte that sscanf() writes. Fix the array size. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>