ipc_msg: sign extend msgtyp in m32 personality

msgtyp has to be treated as a signed type all the way from fetching
to printing.

* ipc_msg.c (fetch_msgrcv_args): Sign extend msgtyp when fetching.
This commit is contained in:
Eugene Syromyatnikov 2018-04-07 04:08:44 +02:00 committed by Dmitry V. Levin
parent 535a07503e
commit 9574a6e231

View File

@ -99,7 +99,7 @@ fetch_msgrcv_args(struct tcb *const tcp, const kernel_ulong_t addr,
if (umove_or_printaddr(tcp, addr, &tmp))
return -1;
pair[0] = tmp[0];
pair[1] = tmp[1];
pair[1] = (int) tmp[1];
}
return 0;
}