aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource/common.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2022-01-13 10:17:33 +0000
committerAleksandr Nogikh <wp32pw@gmail.com>2022-01-13 17:03:14 +0100
commit6baa7baec59a790c452b0b1c97447475eb6c1afe (patch)
treeb58e5d6a951fe5cfbb3cd4c1716820327f17492c /pkg/csource/common.go
parenta7cd45867795d470cbc688d8485f2b5c1eb986fc (diff)
pkg/csource: do not delete comments inside macros
This prevents syzkaller from replacing /*{{{NAME}}}*/ within them.
Diffstat (limited to 'pkg/csource/common.go')
-rw-r--r--pkg/csource/common.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/csource/common.go b/pkg/csource/common.go
index 7e396931c..4b9b37455 100644
--- a/pkg/csource/common.go
+++ b/pkg/csource/common.go
@@ -31,7 +31,7 @@ func createCommonHeader(p, mmapProg *prog.Prog, replacements map[string]string,
// Note: -fdirectives-only isn't supported by clang. This code is relevant
// for producing C++ reproducers. Hence reproducers don't work when setting
// CPP in targets.go to clang++ at the moment.
- cmd := osutil.Command(sysTarget.CPP, "-nostdinc", "-undef", "-fdirectives-only", "-dDI", "-E", "-P", "-")
+ cmd := osutil.Command(sysTarget.CPP, "-nostdinc", "-undef", "-fdirectives-only", "-dDI", "-E", "-P", "-CC", "-")
for _, def := range defines {
cmd.Args = append(cmd.Args, "-D"+def)
}