Contributing fuzz harnesses for the test suite
Mantenedores costumam responder em até 23 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- cmake, cpp, docker
- Domínio
- networking, testing
Direção de pesquisa
Start by reading the existing test layout and build setup, then review the proposed parser and SNP harnesses and their notes about untrusted-byte entry points. The issue asks maintainers to decide where fuzz targets should live and how to build and run them, so seek that direction before preparing a contribution. Done means an agreed structure and integration approach, with harnesses runnable under the chosen setup.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Hi, in #410 you mentioned you would love to add fuzzing to the test suite. I have been building a set of fuzz harnesses
for GameNetworkingSockets and would like to contribute them upstream if that is useful, and I would rather match your
preferences on structure before sending a PR.
What I have:
- A set of
LLVMFuzzerTestOneInputharnesses (so they run under both libFuzzer and AFL++) over the receive-side parsers
and state machines: the STUN and ICE candidate parsers, the UDP pre-connection handler, the SNP data-chunk decoder
(single-packet, multi-packet and a grammar-shaped variant), the crypto handshake and certificate parsing, the
inline-stats path, and the P2P signaling and connect-request paths. Several are structure-aware (libprotobuf-mutator
over the real protobuf messages) so they get past the framing quickly. - They build against a pinned toolchain in a Docker image (pinned compiler, the current
mastercommit of GNS) and run
under AddressSanitizer + UndefinedBehaviorSanitizer, with authored seed corpora and small dictionaries. - A per-harness note on exactly what untrusted bytes reach which entry point, so the coverage is auditable.
Questions before I send anything:
- Where would you want fuzz targets to live in the tree (a
tests/fuzz/directory, alongside the existing tests, or
elsewhere), and how would you like them wired into the build (a CMake option, standalone)? - Do you want them shaped for OSS-Fuzz integration, or just as in-tree targets runnable locally?
- Any conventions you would like followed for the harness entry points, the seed corpora, or the dictionaries?
I can start with the parser and SNP harnesses (the self-contained ones) and follow your lead on the rest. Anything found
through them I will report privately through your HackerOne program per SECURITY.md, not here.
- Linguagem predominante
- C++
- Estrelas
- 10.1k
- Forks
- 781
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de ValveSoftware/GameNetworkingSockets
-
ICE (native client): relay-only connections time out against a real TURN server; host-socket checks starve the relay pairsTalvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 79/100
ValveSoftware/GameNetworkingSockets#452 ·
Mantenedores costumam responder em até 23 dias
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
ValveSoftware/GameNetworkingSockets#474 ·
Mantenedores costumam responder em até 23 dias
-
Dificuldade 4/5 Mais de uma semana Facilidade para iniciantes 12/100
ValveSoftware/GameNetworkingSockets#465 ·
Mantenedores costumam responder em até 23 dias
-
Native ICE resolves STUN/TURN hostnames under the global lockTalvez já em andamento @tintinhamans assumiu há 64 dias. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 55/100
ValveSoftware/GameNetworkingSockets#440 ·
Mantenedores costumam responder em até 23 dias
-
WebRTC ICE keeps an idle thread per STUN/TURN hostname lookupTalvez já em andamento @tintinhamans assumiu há 64 dias. Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 68/100
ValveSoftware/GameNetworkingSockets#439 · 1 comentário ·
Mantenedores costumam responder em até 23 dias
Todas as issues de ValveSoftware/GameNetworkingSockets
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
deepseek-ai/DeepGEMM#529 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
compiler-explorer/compiler-explorer#9710 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
ucb-bar/libgemmini#10 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 1 dia
-
`test_controlled_TermSequenceBox_logging` and `test_symbolic_ops` fail when another test runs firstAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Quantinuum/tket#2282 ·
Mantenedores costumam responder em até 1 dia