aboutsummaryrefslogtreecommitdiffstats
path: root/executor/style_test.go
diff options
context:
space:
mode:
authorHrutvik Kanabar <hrutvik@google.com>2022-10-26 14:12:43 +0000
committerAleksandr Nogikh <wp32pw@gmail.com>2022-11-21 11:06:14 +0100
commit285c8cf9f727a6c7566b6079552c5705e61f621a (patch)
treea8d87a874bf0f778cd3b5df2406228300244c0fb /executor/style_test.go
parent1360be3b26a4fe8a3ece98440df5a82253ac23ba (diff)
executor: add `zlib` decompression header file
Create a header file to provide a clean entrypoint `puff_zlib_to_file()`, which decompresses `zlib` data from an array to a file. This will be used for pseudo-syscalls which accept compressed data, e.g. `syz_mount_image`. The implementation uses a slightly-modified version of `puff.{c,h}`, found in the `zlib` repository. We have to be careful to ensure the copyright information from `puff.{c,h}` gets included in generated C code and C reproducers. Therefore, introduce the `//%` pattern to indicate comments which should not be removed by code generation, and use this pattern for the copyright notice.
Diffstat (limited to 'executor/style_test.go')
-rw-r--r--executor/style_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/style_test.go b/executor/style_test.go
index 0bc1c73bd..14a030695 100644
--- a/executor/style_test.go
+++ b/executor/style_test.go
@@ -80,7 +80,7 @@ if (foo) {
},
{
pattern: `//[^\s]`,
- suppression: `https?://`,
+ suppression: `https?://|//%`,
message: "Add a space after //",
tests: []string{
`//foo`,