Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[go-ldap] add more targets #10969

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion projects/go-ldap/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
################################################################################

FROM gcr.io/oss-fuzz-base/base-builder-go
RUN git clone --depth 1 https://github.com/go-ldap/ldap.git
#RUN git clone --depth 1 https://github.com/go-ldap/ldap.git
RUN git clone --depth 1 -b fix_fuzzing_oom https://github.com/cpuschma/ldap.git
RUN go install github.com/AdamKorcz/go-118-fuzz-build@latest
COPY build.sh $SRC/
WORKDIR $SRC/ldap
13 changes: 10 additions & 3 deletions projects/go-ldap/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@

go get github.com/AdamKorcz/go-118-fuzz-build/testing

compile_native_go_fuzzer github.com/go-ldap/ldap FuzzParseDN fuzz_parse_dn
compile_native_go_fuzzer github.com/go-ldap/ldap FuzzDecodeEscapedSymbols fuzz_decode_escaped_symbols
compile_native_go_fuzzer github.com/go-ldap/ldap FuzzEscapeDN fuzz_escape_dn
compile_native_go_fuzzer /src/ldap FuzzParseDNv0 fuzz_parse_dn_v0
compile_native_go_fuzzer /src/ldap FuzzDecodeEscapedSymbolsv0 fuzz_decode_escaped_symbols_v0
compile_native_go_fuzzer /src/ldap FuzzEscapeDNv0 fuzz_escape_dn_v0

pushd v3
go get github.com/AdamKorcz/go-118-fuzz-build/testing
compile_native_go_fuzzer /src/ldap/v3 FuzzParseDNv3 fuzz_parse_dn_v3
compile_native_go_fuzzer /src/ldap/v3 FuzzDecodeEscapedSymbolsv3 fuzz_decode_escaped_symbols_v3
compile_native_go_fuzzer /src/ldap/v3 FuzzEscapeDNv3 fuzz_escape_dn_v3
popd