]> granicus.if.org Git - strace/commit
Fix printing of invalid l_type and l_whence in fcntl/fcntl64 syscalls
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 16 May 2016 21:57:08 +0000 (21:57 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 16 May 2016 22:41:19 +0000 (22:41 +0000)
commita734a97d0e02bfea3625a60d8d1d114555a925ed
tree2b495bf992e60ac9397ad5193974ce868f1ce1fe
parent6e381c67fd234fb04b3e20ab465cb713c819393f
Fix printing of invalid l_type and l_whence in fcntl/fcntl64 syscalls

* fcntl.c (print_struct_flock64): Explicitly cast l_type and l_whence
fields to unsigned short to avoid potential sign-extension bug when
printing invalid l_type or l_whence fields.
fcntl.c