Contributing fuzz harnesses for the test suite
Maintainer antworten meist innerhalb von 23 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- cmake, cpp, docker
- Bereich
- networking, testing
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- C++
- Sterne
- 10.1k
- Forks
- 781
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus ValveSoftware/GameNetworkingSockets
-
ICE (native client): relay-only connections time out against a real TURN server; host-socket checks starve the relay pairsEvtl. wieder frei Ein Pull Request dazu wurde ohne Merge geschlossen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 79/100
ValveSoftware/GameNetworkingSockets#452 ·
Maintainer antworten meist innerhalb von 23 Tagen
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
ValveSoftware/GameNetworkingSockets#474 ·
Maintainer antworten meist innerhalb von 23 Tagen
-
Schwierigkeit 4/5 Über eine Woche Anfängerfreundlichkeit 12/100
ValveSoftware/GameNetworkingSockets#465 ·
Maintainer antworten meist innerhalb von 23 Tagen
-
Native ICE resolves STUN/TURN hostnames under the global lockEvtl. vergeben @tintinhamans hat das vor 64 Tagen übernommen. Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
ValveSoftware/GameNetworkingSockets#440 ·
Maintainer antworten meist innerhalb von 23 Tagen
-
WebRTC ICE keeps an idle thread per STUN/TURN hostname lookupEvtl. vergeben @tintinhamans hat das vor 64 Tagen übernommen. Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
ValveSoftware/GameNetworkingSockets#439 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 23 Tagen
Alle Issues in ValveSoftware/GameNetworkingSockets
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
deepseek-ai/DeepGEMM#529 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
compiler-explorer/compiler-explorer#9710 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
ucb-bar/libgemmini#10 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
Maintainer antworten meist innerhalb von 1 Tag
-
`test_controlled_TermSequenceBox_logging` and `test_symbolic_ops` fail when another test runs firstOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Quantinuum/tket#2282 ·
Maintainer antworten meist innerhalb von 1 Tag