From 4016fc5ad7f3a4760c28fa7c6c3c1fa30e2ba1de Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 8 Dec 2017 10:45:11 +0100 Subject: prog: fix hints of data args Hints for data args don't work. We do all the work, but at the final stage we patch arg in the _old_ program, not in the _new_ one. So programs passed to the callback are all the same and don't contain any mutations. Tests did not catch this because they work right before that point (don't test the actual interface function MutateWithHints). Fix that and add a test that catches this. --- sys/linux/test.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/linux/test.txt') diff --git a/sys/linux/test.txt b/sys/linux/test.txt index 9e4b91fdb..9451d5558 100644 --- a/sys/linux/test.txt +++ b/sys/linux/test.txt @@ -541,3 +541,7 @@ syz_use_missing { a0 syz_missing_const_res a1 syz_missing_const_struct } + +# Hints tests. + +syz_test$hint_data(a0 ptr[in, array[int8]]) -- cgit mrf-deployment