From c8c15bb214509bafc8fe1a1e3abb8ccf90b3306e Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 13 Dec 2024 15:15:49 +0100 Subject: tools/syz-declextract: infer argument/field types Use data flow analysis to infer syscall argument, return value, and struct field types. See the comment in pkg/declextract/typing.go for more details. --- pkg/clangtool/clangtool.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'pkg/clangtool') diff --git a/pkg/clangtool/clangtool.go b/pkg/clangtool/clangtool.go index 528f80c57..d15cc51a7 100644 --- a/pkg/clangtool/clangtool.go +++ b/pkg/clangtool/clangtool.go @@ -8,6 +8,7 @@ import ( "encoding/json" "errors" "fmt" + "io" "math/rand" "os" "os/exec" @@ -22,10 +23,11 @@ import ( ) type Config struct { - ToolBin string - KernelSrc string - KernelObj string - CacheFile string + ToolBin string + KernelSrc string + KernelObj string + CacheFile string + DebugTrace io.Writer } // Run runs the clang tool on all files in the compilation database -- cgit mrf-deployment