aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-04-24 19:06:34 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-04-24 19:17:07 +0200
commit37e76fe20b5128a6092d2db3a0f42e1228b3aaba (patch)
tree9b2aa911a2a59b8f7720cdefe638eb67e929d0bb /pkg/csource
parentfd5157bebf7064c2608abe385aacb82e24ec3973 (diff)
pkg/scource: rename compiled binary to syz-executor
We call the binary syz-executor because it sometimes shows in bug titles, and we don't want 2 different bugs for when a crash is triggered during fuzzing and during repro.
Diffstat (limited to 'pkg/csource')
-rw-r--r--pkg/csource/build.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/csource/build.go b/pkg/csource/build.go
index b027b337f..c0fc86078 100644
--- a/pkg/csource/build.go
+++ b/pkg/csource/build.go
@@ -19,7 +19,9 @@ import (
// Build builds a C/C++ program from source src and returns name of the resulting binary.
// lang can be "c" or "c++".
func Build(target *prog.Target, lang, src string) (string, error) {
- bin, err := ioutil.TempFile("", "syzkaller")
+ // We call the binary syz-executor because it sometimes shows in bug titles,
+ // and we don't want 2 different bugs for when a crash is triggered during fuzzing and during repro.
+ bin, err := ioutil.TempFile("", "syz-executor")
if err != nil {
return "", fmt.Errorf("failed to create temp file: %v", err)
}