fix flockfile-list regression test
authorSzabolcs Nagy <nsz@port70.net>
Sat, 25 Jul 2020 00:37:21 +0000 (00:37 +0000)
committerSzabolcs Nagy <nsz@port70.net>
Sat, 25 Jul 2020 00:42:50 +0000 (00:42 +0000)
commit7b91cea54a5f5e4e58a9064795c467eaf573e544
tree095f281ba3075e307ba1332d4f5dc8d4aebcf7ec
parent4b0ca742d7f3ecbe397d5a05655538bd33567938
fix flockfile-list regression test

this test should check if freed stdio memory is clobbered
after an funlockfile.

the old method was very fragile: it tried to reuse the
freed memory via a malloc and check if that allocation is
clobbered. now musl supports malloc interposition so we
can use that to directly check the required property.
src/regression/flockfile-list.c