x32: fix decoding of i386 personality lseek syscall

On x32, tcp->ext_arg is not initialized for i386 personality,
so tcp->u_arg has to be used instead.

* lseek.c (SYS_FUNC(lseek)) [X32]: Handle "current_personality == 1" case.
This commit is contained in:
Дмитрий Левин 2015-12-04 16:42:30 +00:00
parent cfde1e3f0f
commit a5aa080ae6

View File

@ -16,6 +16,12 @@ SYS_FUNC(lseek)
int whence;
printfd(tcp, tcp->u_arg[0]);
# ifdef X32
/* tcp->ext_arg is not initialized for i386 personality */
if (current_personality == 1)
offset = tcp->u_arg[1];
else
# endif
offset = tcp->ext_arg[1];
whence = tcp->u_arg[2];
if (whence == SEEK_SET)