]> granicus.if.org Git - strace/commit
tests/test_nlattr.h: fix pointer calculation in TEST_NLATTR_ARRAY
authorEugene Syromyatnikov <evgsyr@gmail.com>
Thu, 10 May 2018 17:33:52 +0000 (19:33 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 23 May 2018 23:27:43 +0000 (23:27 +0000)
commitacd3d3e992ec9530804f55d1011743beb15ed732
treec3cf8f06da2369019c6f91708467c4865ec56e85
parent7ff51ab3d8f66d68e9d7bd8f817cc67baa570fca
tests/test_nlattr.h: fix pointer calculation in TEST_NLATTR_ARRAY

The old code works only when an array contains exactly two items.

* tests/test_nlattr.h (TEST_NLATTR_ARRAY): Fix pointer address
for the case of incomplete read.
tests/test_nlattr.h