File tree Expand file tree Collapse file tree 4 files changed +81
-0
lines changed Expand file tree Collapse file tree 4 files changed +81
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Copyright 2024 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ #
15
+ # ###############################################################################
16
+
17
+ FROM gcr.io/oss-fuzz-base/base-builder-go
18
+ RUN git clone https://github.com/cert-manager/cert-manager --depth=1
19
+ COPY build.sh pki_fuzzer.go $SRC/
20
+ WORKDIR $SRC/cert-manager
Original file line number Diff line number Diff line change
1
+ #! /bin/bash -eu
2
+ # Copyright 2024 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ # ###############################################################################
17
+
18
+ cp -r $SRC /pki_fuzzer.go $SRC /cert-manager/pkg/util/pki/
19
+
20
+ compile_go_fuzzer github.com/cert-manager/cert-manager/pkg/util/pki FuzzParseSubjectStringToRawDERBytes FuzzParseSubjectStringToRawDERBytes
21
+ compile_go_fuzzer github.com/cert-manager/cert-manager/pkg/util/pki FuzzDecodePrivateKeyBytes FuzzDecodePrivateKeyBytes
22
+
Original file line number Diff line number Diff line change
1
+ // Copyright 2024 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ //
15
+
16
+ package pki
17
+
18
+ func FuzzParseSubjectStringToRawDERBytes (data []byte ) int {
19
+ ParseSubjectStringToRawDERBytes (string (data ))
20
+ return 1
21
+ }
22
+
23
+ func FuzzDecodePrivateKeyBytes (data []byte ) int {
24
+ DecodePrivateKeyBytes (data )
25
+ return 1
26
+ }
Original file line number Diff line number Diff line change
1
+ homepage : " https://cert-manager.io"
2
+ primary_contact :
" [email protected] "
3
+ auto_ccs :
4
+
5
+
6
+ vendor_ccs :
7
+
8
+ language : go
9
+ fuzzing_engines :
10
+ - libfuzzer
11
+ sanitizers :
12
+ - address
13
+ main_repo : ' https://github.com/cert-manager/cert-manager'
You can’t perform that action at this time.
0 commit comments