From 285c8cf9f727a6c7566b6079552c5705e61f621a Mon Sep 17 00:00:00 2001 From: Hrutvik Kanabar Date: Wed, 26 Oct 2022 14:12:43 +0000 Subject: 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. --- executor/style_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'executor/style_test.go') 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`, -- cgit mrf-deployment