Contributing fuzz harnesses for the test suite
維護者通常 23 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- cmake, cpp, docker
- 領域
- networking, testing
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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.
- 主要語言
- C++
- 星號
- 10.1k
- 分支
- 781
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
ValveSoftware/GameNetworkingSockets 的其他 Issue
-
ICE (native client): relay-only connections time out against a real TURN server; host-socket checks starve the relay pairs可能重新可做 關聯的 PR 已關閉且未合併。 未關閉
難度 2/5 1-3 小時 新手友好度 79/100
ValveSoftware/GameNetworkingSockets#452 ·
維護者通常 23 天內回覆
-
難度 4/5 3-5 天 新手友好度 35/100
ValveSoftware/GameNetworkingSockets#474 ·
維護者通常 23 天內回覆
-
難度 4/5 一週以上 新手友好度 12/100
ValveSoftware/GameNetworkingSockets#465 ·
維護者通常 23 天內回覆
-
Native ICE resolves STUN/TURN hostnames under the global lock可能已有人在做 @tintinhamans 於 64 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 55/100
ValveSoftware/GameNetworkingSockets#440 ·
維護者通常 23 天內回覆
-
WebRTC ICE keeps an idle thread per STUN/TURN hostname lookup可能已有人在做 @tintinhamans 於 64 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 68/100
ValveSoftware/GameNetworkingSockets#439 · 1 則留言 ·
維護者通常 23 天內回覆
查看 ValveSoftware/GameNetworkingSockets 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 82/100
deepseek-ai/DeepGEMM#529 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 62/100
compiler-explorer/compiler-explorer#9710 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
ucb-bar/libgemmini#10 ·
-
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 1 天內回覆
-
`test_controlled_TermSequenceBox_logging` and `test_symbolic_ops` fail when another test runs first未關閉
難度 2/5 1-3 小時 新手友好度 72/100
Quantinuum/tket#2282 ·
維護者通常 1 天內回覆