Fix the length argument passed from print_iovec to decode_netlink

* io.c (print_iovec): Pass the actual length to decode_netlink
instead of the original length.
* NEWS: Mention this fix.
This commit is contained in:
Дмитрий Левин 2017-04-17 04:37:11 +00:00
parent 15d574a899
commit 0653be4e01
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -25,6 +25,7 @@ Noteworthy changes in release ?.?? (????-??-??)
* Bug fixes
* Fixed decoding of flags argument of preadv2 and pwritev2 syscalls on x32.
* Fixed the number of arguments and tracing flags of alpha specific syscalls.
* Fixed decoding of netlink messages received within struct msghdr.
Noteworthy changes in release 4.16 (2017-02-14)
===============================================

2
io.c
View File

@ -94,7 +94,7 @@ print_iovec(struct tcb *tcp, void *elem_buf, size_t elem_size, void *data)
len = c->data_size;
if (c->data_size != (kernel_ulong_t) -1)
c->data_size -= len;
decode_netlink(tcp, iov[0], iov[1]);
decode_netlink(tcp, iov[0], len);
break;
default:
printaddr(iov[0]);