dumpiov_upto: change size types from unsigned long to kernel_ureg_t

* defs.h (dumpiov_upto): Change data_size argument type
from unsigned long to kernel_ureg_t.
* util.c (dumpiov_upto): Change the type of data_size argument
and iov_len variable from unsigned long to kernel_ureg_t.
This commit is contained in:
Дмитрий Левин 2016-12-25 00:53:52 +00:00
parent 27cc81d61f
commit 0601cf5939
2 changed files with 3 additions and 3 deletions

2
defs.h
View File

@ -607,7 +607,7 @@ extern void
dumpiov_in_mmsghdr(struct tcb *, kernel_ureg_t addr);
extern void
dumpiov_upto(struct tcb *, int len, kernel_ureg_t addr, unsigned long data_size);
dumpiov_upto(struct tcb *, int len, kernel_ureg_t addr, kernel_ureg_t data_size);
extern void
dumpstr(struct tcb *, kernel_ureg_t addr, int len);

4
util.c
View File

@ -916,7 +916,7 @@ printstr_ex(struct tcb *const tcp, const kernel_ureg_t addr,
void
dumpiov_upto(struct tcb *const tcp, const int len, const kernel_ureg_t addr,
unsigned long data_size)
kernel_ureg_t data_size)
{
#if SUPPORTED_PERSONALITIES > 1
union {
@ -948,7 +948,7 @@ dumpiov_upto(struct tcb *const tcp, const int len, const kernel_ureg_t addr,
}
if (umoven(tcp, addr, size, iov) >= 0) {
for (i = 0; i < len; i++) {
unsigned long iov_len = iov_iov_len(i);
kernel_ureg_t iov_len = iov_iov_len(i);
if (iov_len > data_size)
iov_len = data_size;
if (!iov_len)