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:
parent
cfde1e3f0f
commit
a5aa080ae6
6
lseek.c
6
lseek.c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user