Skip to content

Commit 8a2f1c6

Browse files
committed
whitespace fixes
1 parent 63b1b35 commit 8a2f1c6

File tree

9 files changed

+69
-71
lines changed

9 files changed

+69
-71
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"[python]": {
33
"editor.defaultFormatter": "charliermarsh.ruff"
44
},
5-
}
5+
}

REPRODUCING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Reproducing OSS-Fuzz issues
2-
## Reproducible vs non-reproducible
2+
## Reproducible vs non-reproducible
33
OSS-Fuzz generates two kinds of issues; reproducible and non-reproducible. It _generally_ only raises issues for reproducible problems; that is, a testcase that can be passed to the relevant fuzzer which causes a crash. They are marked as such in the OSS-Fuzz dashboard.
44

55
These instructions are for diagnosing reproducible problems.

codecoverage.sh.off

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ INSTALLDIR=/tmp/curlcov_install
2323
# if there have been earlier mainline runs locally
2424
if [[ -d .deps/ && -f Makefile ]]
2525
then
26-
make distclean
26+
make distclean
2727
fi
2828

2929
# Install openssl

curl_fuzzer.h

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -26,60 +26,60 @@
2626
/**
2727
* TLV types.
2828
*/
29-
#define TLV_TYPE_URL 1
30-
#define TLV_TYPE_RESPONSE0 2
31-
#define TLV_TYPE_USERNAME 3
32-
#define TLV_TYPE_PASSWORD 4
33-
#define TLV_TYPE_POSTFIELDS 5
34-
#define TLV_TYPE_HEADER 6
35-
#define TLV_TYPE_COOKIE 7
36-
#define TLV_TYPE_UPLOAD1 8
37-
#define TLV_TYPE_RANGE 9
38-
#define TLV_TYPE_CUSTOMREQUEST 10
39-
#define TLV_TYPE_MAIL_RECIPIENT 11
40-
#define TLV_TYPE_MAIL_FROM 12
41-
#define TLV_TYPE_MIME_PART 13
42-
#define TLV_TYPE_MIME_PART_NAME 14
43-
#define TLV_TYPE_MIME_PART_DATA 15
44-
#define TLV_TYPE_HTTPAUTH 16
45-
#define TLV_TYPE_RESPONSE1 17
46-
#define TLV_TYPE_RESPONSE2 18
47-
#define TLV_TYPE_RESPONSE3 19
48-
#define TLV_TYPE_RESPONSE4 20
49-
#define TLV_TYPE_RESPONSE5 21
50-
#define TLV_TYPE_RESPONSE6 22
51-
#define TLV_TYPE_RESPONSE7 23
52-
#define TLV_TYPE_RESPONSE8 24
53-
#define TLV_TYPE_RESPONSE9 25
54-
#define TLV_TYPE_RESPONSE10 26
55-
#define TLV_TYPE_OPTHEADER 27
56-
#define TLV_TYPE_NOBODY 28
57-
#define TLV_TYPE_FOLLOWLOCATION 29
58-
#define TLV_TYPE_ACCEPTENCODING 30
59-
#define TLV_TYPE_SECOND_RESPONSE0 31
60-
#define TLV_TYPE_SECOND_RESPONSE1 32
61-
#define TLV_TYPE_WILDCARDMATCH 33
62-
#define TLV_TYPE_RTSP_REQUEST 34
63-
#define TLV_TYPE_RTSP_SESSION_ID 35
64-
#define TLV_TYPE_RTSP_STREAM_URI 36
65-
#define TLV_TYPE_RTSP_TRANSPORT 37
66-
#define TLV_TYPE_RTSP_CLIENT_CSEQ 38
67-
#define TLV_TYPE_MAIL_AUTH 39
68-
#define TLV_TYPE_HTTP_VERSION 40
69-
#define TLV_TYPE_DOH_URL 41
70-
#define TLV_TYPE_LOGIN_OPTIONS 42
71-
#define TLV_TYPE_XOAUTH2_BEARER 43
72-
#define TLV_TYPE_USERPWD 44
73-
#define TLV_TYPE_USERAGENT 45
74-
#define TLV_TYPE_NETRC 46
75-
#define TLV_TYPE_SSH_HOST_PUBLIC_KEY_SHA256 47
76-
#define TLV_TYPE_POST 48
77-
#define TLV_TYPE_WS_OPTIONS 49
78-
#define TLV_TYPE_CONNECT_ONLY 50
79-
#define TLV_TYPE_HSTS 51
80-
#define TLV_TYPE_HTTPPOSTBODY 52
81-
#define TLV_TYPE_PROXY 53
82-
#define TLV_TYPE_PROXYTYPE 54
29+
#define TLV_TYPE_URL 1
30+
#define TLV_TYPE_RESPONSE0 2
31+
#define TLV_TYPE_USERNAME 3
32+
#define TLV_TYPE_PASSWORD 4
33+
#define TLV_TYPE_POSTFIELDS 5
34+
#define TLV_TYPE_HEADER 6
35+
#define TLV_TYPE_COOKIE 7
36+
#define TLV_TYPE_UPLOAD1 8
37+
#define TLV_TYPE_RANGE 9
38+
#define TLV_TYPE_CUSTOMREQUEST 10
39+
#define TLV_TYPE_MAIL_RECIPIENT 11
40+
#define TLV_TYPE_MAIL_FROM 12
41+
#define TLV_TYPE_MIME_PART 13
42+
#define TLV_TYPE_MIME_PART_NAME 14
43+
#define TLV_TYPE_MIME_PART_DATA 15
44+
#define TLV_TYPE_HTTPAUTH 16
45+
#define TLV_TYPE_RESPONSE1 17
46+
#define TLV_TYPE_RESPONSE2 18
47+
#define TLV_TYPE_RESPONSE3 19
48+
#define TLV_TYPE_RESPONSE4 20
49+
#define TLV_TYPE_RESPONSE5 21
50+
#define TLV_TYPE_RESPONSE6 22
51+
#define TLV_TYPE_RESPONSE7 23
52+
#define TLV_TYPE_RESPONSE8 24
53+
#define TLV_TYPE_RESPONSE9 25
54+
#define TLV_TYPE_RESPONSE10 26
55+
#define TLV_TYPE_OPTHEADER 27
56+
#define TLV_TYPE_NOBODY 28
57+
#define TLV_TYPE_FOLLOWLOCATION 29
58+
#define TLV_TYPE_ACCEPTENCODING 30
59+
#define TLV_TYPE_SECOND_RESPONSE0 31
60+
#define TLV_TYPE_SECOND_RESPONSE1 32
61+
#define TLV_TYPE_WILDCARDMATCH 33
62+
#define TLV_TYPE_RTSP_REQUEST 34
63+
#define TLV_TYPE_RTSP_SESSION_ID 35
64+
#define TLV_TYPE_RTSP_STREAM_URI 36
65+
#define TLV_TYPE_RTSP_TRANSPORT 37
66+
#define TLV_TYPE_RTSP_CLIENT_CSEQ 38
67+
#define TLV_TYPE_MAIL_AUTH 39
68+
#define TLV_TYPE_HTTP_VERSION 40
69+
#define TLV_TYPE_DOH_URL 41
70+
#define TLV_TYPE_LOGIN_OPTIONS 42
71+
#define TLV_TYPE_XOAUTH2_BEARER 43
72+
#define TLV_TYPE_USERPWD 44
73+
#define TLV_TYPE_USERAGENT 45
74+
#define TLV_TYPE_NETRC 46
75+
#define TLV_TYPE_SSH_HOST_PUBLIC_KEY_SHA256 47
76+
#define TLV_TYPE_POST 48
77+
#define TLV_TYPE_WS_OPTIONS 49
78+
#define TLV_TYPE_CONNECT_ONLY 50
79+
#define TLV_TYPE_HSTS 51
80+
#define TLV_TYPE_HTTPPOSTBODY 52
81+
#define TLV_TYPE_PROXY 53
82+
#define TLV_TYPE_PROXYTYPE 54
8383

8484
#define TLV_TYPE_PROXYUSERPWD 100
8585
#define TLV_TYPE_REFERER 101
@@ -274,25 +274,25 @@
274274
#define MAXIMUM_WRITE_LENGTH 52428800
275275

276276
/* convenience string for HTTPPOST body name */
277-
#define FUZZ_HTTPPOST_NAME "test"
277+
#define FUZZ_HTTPPOST_NAME "test"
278278

279279
/* Cookie-jar WRITE (CURLOPT_COOKIEJAR) path. */
280280
#define FUZZ_COOKIE_JAR_PATH "/dev/null"
281281

282282
/* Cookie-jar READ (CURLOPT_COOKIEFILE) path. */
283-
#define FUZZ_RO_COOKIE_FILE_PATH "/dev/null"
283+
#define FUZZ_RO_COOKIE_FILE_PATH "/dev/null"
284284

285285
/* Alt-Svc header cache path */
286-
#define FUZZ_ALT_SVC_HEADER_CACHE_PATH "/dev/null"
286+
#define FUZZ_ALT_SVC_HEADER_CACHE_PATH "/dev/null"
287287

288288
/* HSTS header cache path */
289-
#define FUZZ_HSTS_HEADER_CACHE_PATH "/dev/null"
289+
#define FUZZ_HSTS_HEADER_CACHE_PATH "/dev/null"
290290

291291
/* Certificate Revocation List file path */
292-
#define FUZZ_CRL_FILE_PATH "/dev/null"
292+
#define FUZZ_CRL_FILE_PATH "/dev/null"
293293

294294
/* .netrc file path */
295-
#define FUZZ_NETRC_FILE_PATH "/dev/null"
295+
#define FUZZ_NETRC_FILE_PATH "/dev/null"
296296

297297
/* Number of supported responses */
298298
#define TLV_MAX_NUM_RESPONSES 11

curl_fuzzer_tlv.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -462,10 +462,10 @@ void fuzz_setup_http_post(FUZZ_DATA *fuzz, TLV *tlv)
462462
* for lots of others which could be added here.
463463
*/
464464
curl_formadd(&post, &last,
465-
CURLFORM_COPYNAME, FUZZ_HTTPPOST_NAME,
466-
CURLFORM_PTRCONTENTS, fuzz->post_body,
467-
CURLFORM_CONTENTLEN, (curl_off_t) strlen(fuzz->post_body),
468-
CURLFORM_END);
465+
CURLFORM_COPYNAME, FUZZ_HTTPPOST_NAME,
466+
CURLFORM_PTRCONTENTS, fuzz->post_body,
467+
CURLFORM_CONTENTLEN, (curl_off_t) strlen(fuzz->post_body),
468+
CURLFORM_END);
469469

470470
fuzz->last_post_part = last;
471471
fuzz->httppost = post;

fuzz_bufq.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@
4949
#define FV_PRINTF(verbose, ...) \
5050
if(!!(verbose)) { \
5151
printf(__VA_ARGS__); \
52-
}
52+
}

fuzz_url.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,3 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
5353
/* This function must always return 0. Non-zero codes are reserved. */
5454
return 0;
5555
}
56-

ossconfig/http.dict

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,3 @@
3838
"Pragma:"
3939
"no-cache"
4040
"Host:"
41-

testinput.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
***************************************************************************/
2222
#include <inttypes.h>
2323

24-
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size);
24+
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size);

0 commit comments

Comments
 (0)