tinycodinglm / misc /misc-0007.jsonl
winapiadmin's picture
Upload folder using huggingface_hub (part 16)
d517dc9 verified
|
Raw History Blame Contribute Delete
1.46 kB
opencode trace
System You are an expert programmer.

You are an expert programmer.

User

Explain advanced fuzzing techniques

Assistant

Grammar-based fuzzing: model input format, generate valid-looking inputs. Tools: Domato (HTML), jsfunfuzz (JS), prototool (protobuf).

Structure-aware fuzzing: mutate structured data (JSON, protobuf, IPC messages). libprotobuf-mutator, AFL++ custom mutators.

Differential fuzzing: compare two implementations with same input. Find inconsistencies.

Persistent mode: libFuzzer keeps process alive, calls fuzz_target() repeatedly. Avoids fork overhead. 10-100x faster.

Custom mutators: AFL++ lets you write mutation strategies. Good for protocol fuzzing.

Symbolic execution + fuzzing: QSYM, Driller. Use concolic execution when fuzzing gets stuck.

Coverage edges: count branches not just blocks. Edge = (prev_block, curr_block). AFL uses 64KB bitmap.

Dictionary fuzzing: provide token dictionary to AFL/libFuzzer. Helps generate valid tokens.

Regression testing: add crashing inputs to test suite. ClusterFuzz manages this at scale.

C/C++ harness: LLVMFuzzerTestOneInput(const char*data, int size). Return 0.
Python:atheris.FuzzTarget(). Fuzz function receives bytes.