]> granicus.if.org Git - strace/commit
Fix old_mmap output when mmap arguments are unfetchable
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 22 Apr 2016 23:41:36 +0000 (23:41 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 23 Apr 2016 00:07:14 +0000 (00:07 +0000)
commit3db07f11c8360b9168e064f56f9dc539b4bef938
treee9c0a285471b075a369532709dddc6cca59db526
parentcf52778aba828364211ba88c6477d4c12922cf86
Fix old_mmap output when mmap arguments are unfetchable

* mem.c (SYS_FUNC(old_mmap)): Use umove_or_printaddr instead of umoven
to fetch mmap arguments, return RVAL_DECODED when umove_or_printaddr
fails.
* tests/old_mmap.c (main): Check it.
mem.c
tests/old_mmap.c
tests/old_mmap.test