Skip to content

Add fuzz drivers for DN parsing and escaping - #623

Open
xingyaner wants to merge 1 commit into
go-ldap:masterfrom
xingyaner:fix-build
Open

Add fuzz drivers for DN parsing and escaping#623
xingyaner wants to merge 1 commit into
go-ldap:masterfrom
xingyaner:fix-build

Conversation

@xingyaner

Copy link
Copy Markdown

Adds v3/fuzz_drivers.go with three Go native fuzz targets (FuzzParseDN, FuzzDecodeEscapedSymbols, FuzzEscapeDN) that exercise the DN parsing and escaping logic in v3/dn.go.

This change is necessary because go-ldap is integrated with OSS-Fuzz, and the OSS-Fuzz build (compile_native_go_fuzzer) requires Fuzz* entry points to exist inside the target package; without them, no fuzzer binaries can be built. The fuzz targets also enable local fuzzing via go test -fuzz=... ./v3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant