]> granicus.if.org Git - strace/commit
tests/test_nlattr.h: fix pointer calculation in TEST_NLATTR_ARRAY, take 2
authorEugene Syromyatnikov <evgsyr@gmail.com>
Thu, 10 May 2018 17:33:52 +0000 (19:33 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 30 May 2018 10:54:34 +0000 (10:54 +0000)
commitbf15325cd633b42b5bf5e0ed1e77beba27637811
treeb06187e7690c37a4df8a93de781a4198f755b821
parent540d70fcb680228f7ccf58c11370b5f252e4b73e
tests/test_nlattr.h: fix pointer calculation in TEST_NLATTR_ARRAY, take 2

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