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:
parent
27cc81d61f
commit
0601cf5939
2
defs.h
2
defs.h
@ -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
4
util.c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user