Datasets:
prog string | src_site_id int64 | to_take int64 | source_location string | branch bool | format string | src_dir string |
|---|---|---|---|---|---|---|
libpng_read_fuzzer | 934 | 1 | /src/libpng/libpng/pngrutil.c:4457:11 | true | png | /src/libpng/libpng |
libpng_read_fuzzer | 927 | 1 | /src/libpng/libpng/pngrutil.c:4361:14 | true | png | /src/libpng/libpng |
libpng_read_fuzzer | 1,962 | 0 | /src/libpng/libpng/png.c:1146:11 | false | png | /src/libpng/libpng |
libpng_read_fuzzer | 776 | 1 | /src/libpng/libpng/pngrutil.c:2268:13 | true | png | /src/libpng/libpng |
libpng_read_fuzzer | 1,934 | 1 | /src/libpng/libpng/png.c:629:11 | true | png | /src/libpng/libpng |
libpng_read_fuzzer | 1,743 | 0 | /src/libpng/libpng/pngmem.c:219:11 | false | png | /src/libpng/libpng |
libpng_read_fuzzer | 2,141 | 1 | /src/libpng/libpng/contrib/oss-fuzz/libpng_read_fuzzer.cc:102:7 | true | png | /src/libpng/libpng |
libpng_read_fuzzer | 413 | 0 | /src/libpng/libpng/pngrutil.c:321:16 | false | png | /src/libpng/libpng |
libpng_read_fuzzer | 637 | 1 | /src/libpng/libpng/pngrutil.c:930:13 | true | png | /src/libpng/libpng |
libpng_read_fuzzer | 739 | 1 | /src/libpng/libpng/pngrutil.c:1947:8 | true | png | /src/libpng/libpng |
libpng_read_fuzzer | 1,330 | 1 | /src/libpng/libpng/pngread.c:472:17 | true | png | /src/libpng/libpng |
libpng_read_fuzzer | 1,070 | 0 | /src/libpng/libpng/pngget.c:853:8 | false | png | /src/libpng/libpng |
libpng_read_fuzzer | 940 | 1 | /src/libpng/libpng/pngrutil.c:4477:14 | true | png | /src/libpng/libpng |
libpng_read_fuzzer | 643 | 1 | /src/libpng/libpng/pngrutil.c:986:8 | true | png | /src/libpng/libpng |
libpng_read_fuzzer | 1,730 | 1 | /src/libpng/libpng/pngmem.c:181:8 | true | png | /src/libpng/libpng |
sqlite3_ossfuzz | 7,818 | 1 | /src/sqlite3/sqlite3/build/sqlite3.c:101550:13 | true | sql | /src/sqlite3/sqlite3 |
sqlite3_ossfuzz | 5,076 | 1 | /src/sqlite3/sqlite3/build/sqlite3.c:145358:19 | true | sql | /src/sqlite3/sqlite3 |
sqlite3_ossfuzz | 4,931 | 0 | /src/sqlite3/sqlite3/build/sqlite3.c:131526:9 | false | sql | /src/sqlite3/sqlite3 |
sqlite3_ossfuzz | 5,047 | 0 | /src/sqlite3/sqlite3/build/sqlite3.c:81946:11 | false | sql | /src/sqlite3/sqlite3 |
sqlite3_ossfuzz | 6,797 | 1 | /src/sqlite3/sqlite3/build/sqlite3.c:149243:13 | true | sql | /src/sqlite3/sqlite3 |
sqlite3_ossfuzz | 3,829 | 0 | /src/sqlite3/sqlite3/build/sqlite3.c:136274:9 | false | sql | /src/sqlite3/sqlite3 |
sqlite3_ossfuzz | 1,206 | 0 | /src/sqlite3/sqlite3/build/sqlite3.c:123091:7 | false | sql | /src/sqlite3/sqlite3 |
sqlite3_ossfuzz | 1,683 | 0 | /src/sqlite3/sqlite3/build/sqlite3.c:128364:7 | false | sql | /src/sqlite3/sqlite3 |
sqlite3_ossfuzz | 5,533 | 0 | /src/sqlite3/sqlite3/build/sqlite3.c:81872:9 | false | sql | /src/sqlite3/sqlite3 |
sqlite3_ossfuzz | 3,330 | 1 | /src/sqlite3/sqlite3/build/sqlite3.c:57665:7 | true | sql | /src/sqlite3/sqlite3 |
sqlite3_ossfuzz | 8,153 | 1 | /src/sqlite3/sqlite3/build/sqlite3.c:99148:11 | true | sql | /src/sqlite3/sqlite3 |
sqlite3_ossfuzz | 26 | 0 | /src/sqlite3/sqlite3/build/sqlite3.c:110913:7 | false | sql | /src/sqlite3/sqlite3 |
sqlite3_ossfuzz | 1,296 | 0 | /src/sqlite3/sqlite3/build/sqlite3.c:121274:9 | false | sql | /src/sqlite3/sqlite3 |
sqlite3_ossfuzz | 8,754 | 1 | /src/sqlite3/sqlite3/build/sqlite3.c:133561:13 | true | sql | /src/sqlite3/sqlite3 |
sqlite3_ossfuzz | 6,524 | 1 | /src/sqlite3/sqlite3/build/sqlite3.c:78436:15 | true | sql | /src/sqlite3/sqlite3 |
libxml2_xml | 10,679 | 1 | /src/libxml2/libxml2/SAX2.c:854:9 | true | xml | /src/libxml2/libxml2 |
libxml2_xml | 539 | 1 | /src/libxml2/libxml2/parser.c:3078:6 | true | xml | /src/libxml2/libxml2 |
libxml2_xml | 9,901 | 0 | /src/libxml2/libxml2/valid.c:5266:7 | false | xml | /src/libxml2/libxml2 |
libxml2_xml | 1,138 | 1 | /src/libxml2/libxml2/xmlIO.c:3302:9 | true | xml | /src/libxml2/libxml2 |
libxml2_xml | 8,908 | 1 | /src/libxml2/libxml2/valid.c:3795:6 | true | xml | /src/libxml2/libxml2 |
libxml2_xml | 11,750 | 1 | /src/libxml2/libxml2/encoding.c:1207:9 | true | xml | /src/libxml2/libxml2 |
libxml2_xml | 6,147 | 1 | /src/libxml2/libxml2/parser.c:13256:10 | true | xml | /src/libxml2/libxml2 |
libxml2_xml | 5,214 | 1 | /src/libxml2/libxml2/xmlsave.c:1527:25 | true | xml | /src/libxml2/libxml2 |
libxml2_xml | 6,386 | 1 | /src/libxml2/libxml2/xmlregexp.c:2734:6 | true | xml | /src/libxml2/libxml2 |
libxml2_xml | 6,487 | 1 | /src/libxml2/libxml2/parser.c:5421:6 | true | xml | /src/libxml2/libxml2 |
libxml2_xml | 7,665 | 0 | /src/libxml2/libxml2/tree.c:553:9 | false | xml | /src/libxml2/libxml2 |
libxml2_xml | 6,086 | 1 | /src/libxml2/libxml2/SAX2.c:1573:8 | true | xml | /src/libxml2/libxml2 |
libxml2_xml | 2,963 | 1 | /src/libxml2/libxml2/encoding.c:975:6 | true | xml | /src/libxml2/libxml2 |
libxml2_xml | 3,041 | 1 | /src/libxml2/libxml2/SAX2.c:643:6 | true | xml | /src/libxml2/libxml2 |
libxml2_xml | 9,756 | 1 | /src/libxml2/libxml2/valid.c:4489:9 | true | xml | /src/libxml2/libxml2 |
libjpeg_turbo_fuzzer | 698 | 1 | /src/libjpeg/libjpeg-turbo.3.0.x/jdarith.c:410:7 | true | jpeg | /src/libjpeg/libjpeg-turbo.3.0.x |
libjpeg_turbo_fuzzer | 701 | 1 | /src/libjpeg/libjpeg-turbo.3.0.x/jdarith.c:446:7 | true | jpeg | /src/libjpeg/libjpeg-turbo.3.0.x |
libjpeg_turbo_fuzzer | 1,177 | 1 | /src/libjpeg/libjpeg-turbo.3.0.x/jdmarker.c:1221:11 | true | jpeg | /src/libjpeg/libjpeg-turbo.3.0.x |
libjpeg_turbo_fuzzer | 725 | 1 | /src/libjpeg/libjpeg-turbo.3.0.x/jdarith.c:586:13 | true | jpeg | /src/libjpeg/libjpeg-turbo.3.0.x |
libjpeg_turbo_fuzzer | 183 | 1 | /src/libjpeg/libjpeg-turbo.3.0.x/jdarith.c:259:7 | true | jpeg | /src/libjpeg/libjpeg-turbo.3.0.x |
libjpeg_turbo_fuzzer | 1,083 | 1 | /src/libjpeg/libjpeg-turbo.3.0.x/jdphuff.c:488:7 | true | jpeg | /src/libjpeg/libjpeg-turbo.3.0.x |
libjpeg_turbo_fuzzer | 528 | 1 | /src/libjpeg/libjpeg-turbo.3.0.x/jdmarker.c:683:7 | true | jpeg | /src/libjpeg/libjpeg-turbo.3.0.x |
libjpeg_turbo_fuzzer | 1,269 | 1 | /src/libjpeg/libjpeg-turbo.3.0.x/jdinput.c:335:11 | true | jpeg | /src/libjpeg/libjpeg-turbo.3.0.x |
libjpeg_turbo_fuzzer | 1,324 | 1 | /src/libjpeg/libjpeg-turbo.3.0.x/jdhuff.c:790:9 | true | jpeg | /src/libjpeg/libjpeg-turbo.3.0.x |
libjpeg_turbo_fuzzer | 480 | 1 | /src/libjpeg/libjpeg-turbo.3.0.x/jdmarker.c:642:14 | true | jpeg | /src/libjpeg/libjpeg-turbo.3.0.x |
libjpeg_turbo_fuzzer | 1,349 | 0 | /src/libjpeg/libjpeg-turbo.3.0.x/jdhuff.c:639:15 | false | jpeg | /src/libjpeg/libjpeg-turbo.3.0.x |
libjpeg_turbo_fuzzer | 913 | 0 | /src/libjpeg/libjpeg-turbo.3.0.x/jdcolor.c:805:9 | false | jpeg | /src/libjpeg/libjpeg-turbo.3.0.x |
libjpeg_turbo_fuzzer | 371 | 1 | /src/libjpeg/libjpeg-turbo.3.0.x/jdcolor.c:815:11 | true | jpeg | /src/libjpeg/libjpeg-turbo.3.0.x |
libjpeg_turbo_fuzzer | 1,449 | 1 | /src/libjpeg/libjpeg-turbo.3.0.x/jdcoefct.c:661:17 | true | jpeg | /src/libjpeg/libjpeg-turbo.3.0.x |
libjpeg_turbo_fuzzer | 1,273 | 1 | /src/libjpeg/libjpeg-turbo.3.0.x/jdinput.c:60:7 | true | jpeg | /src/libjpeg/libjpeg-turbo.3.0.x |
re2_fuzzer | 1,151 | 1 | /src/re2/re2/re2/compile.cc:1061:11 | true | re2 | /src/re2/re2 |
re2_fuzzer | 419 | 1 | /src/re2/re2/re2/prog.cc:308:14 | true | re2 | /src/re2/re2 |
re2_fuzzer | 485 | 1 | /src/re2/re2/re2/sparse_set.h:145:9 | true | re2 | /src/re2/re2 |
re2_fuzzer | 745 | 1 | /src/re2/re2/re2/parse.cc:2146:13 | true | re2 | /src/re2/re2 |
re2_fuzzer | 735 | 1 | /src/re2/re2/re2/parse.cc:2082:7 | true | re2 | /src/re2/re2 |
re2_fuzzer | 460 | 1 | /src/re2/re2/re2/prog.cc:911:11 | true | re2 | /src/re2/re2 |
re2_fuzzer | 732 | 0 | /src/re2/re2/re2/parse.cc:1845:7 | false | re2 | /src/re2/re2 |
re2_fuzzer | 743 | 1 | /src/re2/re2/re2/parse.cc:2130:13 | true | re2 | /src/re2/re2 |
re2_fuzzer | 418 | 1 | /src/re2/re2/re2/prog.cc:306:9 | true | re2 | /src/re2/re2 |
re2_fuzzer | 975 | 1 | /src/re2/re2/re2/dfa.cc:1042:7 | true | re2 | /src/re2/re2 |
re2_fuzzer | 853 | 1 | /src/re2/re2/re2/onepass.cc:560:15 | true | re2 | /src/re2/re2 |
re2_fuzzer | 810 | 1 | /src/re2/re2/re2/parse.cc:1338:9 | true | re2 | /src/re2/re2 |
re2_fuzzer | 849 | 1 | /src/re2/re2/re2/onepass.cc:532:17 | true | re2 | /src/re2/re2 |
re2_fuzzer | 1,077 | 1 | /src/re2/re2/re2/compile.cc:305:7 | true | re2 | /src/re2/re2 |
re2_fuzzer | 111 | 1 | /src/re2/re2/re2/simplify.cc:659:7 | true | re2 | /src/re2/re2 |
bloaty_fuzz_target | 4,624 | 1 | /src/bloaty/bloaty/third_party/protobuf/src/google/protobuf/wire_format_lite.cc:258:9 | true | elf,mach-o,pe,wasm | /src/bloaty/bloaty |
bloaty_fuzz_target | 4,488 | 1 | /src/bloaty/bloaty/src/elf.cc:678:9 | true | elf,mach-o,pe,wasm | /src/bloaty/bloaty |
bloaty_fuzz_target | 7,375 | 1 | /src/bloaty/bloaty/src/pe.cc:124:7 | true | elf,mach-o,pe,wasm | /src/bloaty/bloaty |
bloaty_fuzz_target | 7,363 | 1 | /src/bloaty/bloaty/src/webassembly.cc:367:31 | true | elf,mach-o,pe,wasm | /src/bloaty/bloaty |
bloaty_fuzz_target | 967 | 1 | /src/bloaty/bloaty/src/dwarf.cc:623:9 | true | elf,mach-o,pe,wasm | /src/bloaty/bloaty |
bloaty_fuzz_target | 2,933 | 1 | /src/bloaty/bloaty/src/dwarf/debug_info.cc:239:9 | true | elf,mach-o,pe,wasm | /src/bloaty/bloaty |
bloaty_fuzz_target | 7,420 | 0 | /src/bloaty/bloaty/src/dwarf.cc:393:14 | false | elf,mach-o,pe,wasm | /src/bloaty/bloaty |
bloaty_fuzz_target | 7,198 | 1 | /src/bloaty/bloaty/src/elf.cc:498:7 | true | elf,mach-o,pe,wasm | /src/bloaty/bloaty |
bloaty_fuzz_target | 7,539 | 1 | /src/bloaty/bloaty/src/bloaty.cc:1182:11 | true | elf,mach-o,pe,wasm | /src/bloaty/bloaty |
bloaty_fuzz_target | 7,429 | 0 | /src/bloaty/bloaty/src/dwarf.cc:604:19 | false | elf,mach-o,pe,wasm | /src/bloaty/bloaty |
bloaty_fuzz_target | 1,857 | 1 | /src/bloaty/bloaty/src/dwarf.cc:521:16 | true | elf,mach-o,pe,wasm | /src/bloaty/bloaty |
bloaty_fuzz_target | 433 | 1 | /src/bloaty/bloaty/src/webassembly.cc:365:31 | true | elf,mach-o,pe,wasm | /src/bloaty/bloaty |
bloaty_fuzz_target | 3,895 | 1 | /src/bloaty/bloaty/third_party/abseil-cpp/absl/strings/numbers.cc:1017:7 | true | elf,mach-o,pe,wasm | /src/bloaty/bloaty |
bloaty_fuzz_target | 3,015 | 1 | /src/bloaty/bloaty/src/pe.cc:281:9 | true | elf,mach-o,pe,wasm | /src/bloaty/bloaty |
bloaty_fuzz_target | 3,122 | 0 | /src/bloaty/bloaty/third_party/protobuf/src/google/protobuf/descriptor.pb.cc:8485:7 | false | elf,mach-o,pe,wasm | /src/bloaty/bloaty |
freetype2_ftfuzzer | 357 | 1 | /src/freetype2/freetype2/src/autofit/afhints.c:1149:17 | true | ttf,otf | /src/freetype2/freetype2 |
freetype2_ftfuzzer | 2,237 | 1 | /src/freetype2/freetype2/src/sfnt/sfobjs.c:935:10 | true | ttf,otf | /src/freetype2/freetype2 |
freetype2_ftfuzzer | 5,196 | 1 | /src/freetype2/freetype2/src/truetype/ttgload.c:1868:12 | true | ttf,otf | /src/freetype2/freetype2 |
freetype2_ftfuzzer | 2,720 | 1 | /src/freetype2/freetype2/src/sfnt/ttcmap.c:1429:14 | true | ttf,otf | /src/freetype2/freetype2 |
freetype2_ftfuzzer | 4,209 | 1 | /src/freetype2/freetype2/src/base/ftstroke.c:2155:14 | true | ttf,otf | /src/freetype2/freetype2 |
freetype2_ftfuzzer | 3,263 | 1 | /src/freetype2/freetype2/src/winfonts/winfnt.c:235:10 | true | ttf,otf | /src/freetype2/freetype2 |
freetype2_ftfuzzer | 2,349 | 0 | /src/freetype2/freetype2/src/sfnt/ttload.c:955:16 | false | ttf,otf | /src/freetype2/freetype2 |
freetype2_ftfuzzer | 5,375 | 1 | /src/freetype2/freetype2/src/truetype/ttgload.c:461:14 | true | ttf,otf | /src/freetype2/freetype2 |
freetype2_ftfuzzer | 4,268 | 1 | /src/freetype2/freetype2/src/cff/cffload.c:2308:12 | true | ttf,otf | /src/freetype2/freetype2 |
freetype2_ftfuzzer | 5,365 | 1 | /src/freetype2/freetype2/src/truetype/ttgload.c:363:10 | true | ttf,otf | /src/freetype2/freetype2 |
DIS-Bench: Benchmarking LLMs for System Testing via Directed Input Synthesis
A benchmark for evaluating Large Language Models' ability in system testing via Directed Input Synthesis (DIS): that is, generating inputs that cover specific code branches in real-world programs.
Overview
| Dataset | File | Tasks | Description |
|---|---|---|---|
| DIS-Bench-Lite | dataset.jsonl |
555 | Lightweight evaluation set (15 tasks per program) |
| DIS-Bench | dataset_full.jsonl |
8267 | Full benchmark |
Each task requires generating an input buffer that, when processed by a target program, covers a specific branch direction in the source code.
Statistics
By Category
| Category | DIS-Bench-Lite | DIS-Bench |
|---|---|---|
| Image | 120 | 798 |
| Video/Audio | 60 | 768 |
| Documents | 30 | 558 |
| Fonts | 45 | 1167 |
| Data Formats | 45 | 871 |
| Compilers/Interpreters | 60 | 897 |
| Binaries | 90 | 1419 |
| Network | 45 | 1116 |
| Others | 60 | 673 |
| Total | 555 | 8267 |
By Program
| Program | Format(s) | DIS-Bench-Lite | DIS-Bench |
|---|---|---|---|
| binutils (nm) | elf | 15 | 103 |
| binutils (objdump) | elf | 15 | 456 |
| binutils (readelf) | elf | 15 | 154 |
| binutils (size) | elf | 15 | 186 |
| binutils (strip) | elf | 15 | 460 |
| bloaty | elf,mach-o,pe,wasm | 15 | 60 |
| exiv2 | jpeg | 15 | 24 |
| ffmpeg | vi,mov,flv,mp4,mp3,h264 | 15 | 430 |
| freetype2 | ttf,otf | 15 | 587 |
| harfbuzz | ttf,otf | 15 | 522 |
| jasper | bmp,mif,pgx,pnm,ras,jpg,png,tga | 15 | 156 |
| jhead | jpeg | 15 | 36 |
| jq | json | 15 | 23 |
| lcms | cms | 15 | 85 |
| libjpeg-turbo | jpeg | 15 | 56 |
| libpcap | pcap | 15 | 64 |
| libpng | png | 15 | 65 |
| libsndfile | aifc,aiff,au,caf,mp3,oga,opus,paf,raw,rf64,sds,wav,xi | 15 | 177 |
| libtiff (tiff2ps) | tiff | 15 | 198 |
| libtiff (tiffsplit) | tiff | 15 | 209 |
| libxml2 | xml | 15 | 376 |
| lua | lua | 15 | 134 |
| mbedtls | dtls | 15 | 100 |
| mruby | ruby | 15 | 350 |
| mujs | javascript | 15 | 126 |
| ncurses | terminfo | 15 | 84 |
| openh264 | h264 | 15 | 100 |
| openthread | openthread | 15 | 18 |
| php | php | 15 | 287 |
| proj4 | proj | 15 | 481 |
| re2 | re2 | 15 | 23 |
| sqlite3 | sql | 15 | 784 |
| stb | bmp,gif,jpg,tga,png | 15 | 54 |
| tcpdump | pcap | 15 | 998 |
| vorbis | vorbis | 15 | 61 |
| woff2 | woff2 | 15 | 58 |
| xpdf | 15 | 182 | |
| Total | 555 | 8267 |
Target Programs
37 programs covering 48 file formats, including popular libraries and utilities from OSS-Fuzz and real-world applications.
| Category | Programs |
|---|---|
| Image | libpng, libjpeg-turbo, stb, libtiff (tiffsplit, tiff2ps), jhead, exiv2, imginfo |
| Video/Audio | ffmpeg, openh264, vorbis, sndfile |
| Documents | libxml2, pdftotext |
| Fonts | woff2, freetype2, harfbuzz |
| Data Formats | sqlite3, jq, libpcap |
| Compilers/Interpreters | lua, mruby, mujs, php |
| Binaries | binutils (readelf, nm, objdump, strip, size), bloaty |
| Network | mbedtls, tcpdump, openthread |
| Others | re2, proj4, infotocap, lcms |
Supported File Formats
48 file formats are supported across all target programs:
| Type | Formats |
|---|---|
| Image | png, jpeg, jpg, gif, bmp, tiff, tga, pnm, ras, pgx, mif |
| Video/Audio | mp4, flv, mov, h264, mp3, wav, vorbis, aiff, aifc, au, caf, oga, opus, xi, paf, raw, rf64, sds, vi |
| Documents | xml, pdf |
| Fonts | woff2, otf, ttf |
| Data | sql, json, pcap |
| Binaries | elf, pe, mach-o, wasm |
| Code | lua, ruby, javascript, php |
| Network | dtls, openthread |
| Others | terminfo, proj, cms, re2 |
Dataset Structure
Each line in dataset.jsonl / dataset_full.jsonl is a JSON object:
{
"prog": "libpng_read_fuzzer",
"src_site_id": 934,
"to_take": 1,
"source_location": "/src/libpng/libpng/pngrutil.c:4457:11",
"branch": true,
"format": "png",
"src_dir": "/src/libpng/libpng"
}
| Field | Type | Description |
|---|---|---|
prog |
string | Target program identifier (matches binary name in /targets/) |
src_site_id |
int | Branch site identifier (index into instrumentation data) |
to_take |
int (0 or 1) | Target branch direction: 0 = false branch, 1 = true branch |
source_location |
string | Source code location of the branch condition (file:line:column) |
branch |
bool | Same as to_take (convenience field: true/false) |
format |
string | Expected input file format(s), comma-separated if multiple |
src_dir |
string | Path to source code directory in the Docker image |
Dataset Construction
The benchmark is constructed by selecting roadblock branches from fuzzing campaigns:
- Fuzzing Campaigns: Run multiple 24-hour fuzzing sessions for each target program using AFL
- Branch Tracking: Track when each branch is first reached and when it is covered (both directions exercised)
- Roadblock Identification: A branch is considered a "roadblock" if:
- It is reached within the fuzzing campaign
- It remains uncovered for at least 1 hour (threshold=3600s) after being reached
- This condition holds in at least 50% of the fuzzing runs
- Selection: From all identified roadblock branches, randomly sample to create the benchmark
Construction Algorithm
def select_br_according_to_multiple_runs(prog, fuzz_dirs, threshold=3600, endtime=24*3600, sel_portion=0.5):
# For each fuzzing run, track reach_time and cover_time for each branch
# A branch is "selected" (roadblock) if:
# - It was reached before (endtime - threshold/2)
# - Time to cover (cover_time - reach_time) >= threshold
# - This condition holds in >= max(n_runs * sel_portion, 1) runs
Task Description
Given a dataset entry, the LLM must generate a Python script containing a generate_buf() function that returns a bytes object. When the target program processes this buffer, it should execute the specified branch direction.
Example task:
Program: libpng_read_fuzzer
Branch: png_ptr->color_type == PNG_COLOR_TYPE_PALETTE (line 4457)
Direction: true (to_take=1)
Format: png
Expected LLM output:
def generate_buf():
# Generate a valid PNG with palette color type
buf = b'\x89PNG\r\n\x1a\n'
# ... IHDR chunk with color_type=3 (palette) ...
return buf
Evaluation
Docker Environment
Run evaluation inside the Docker image for reproducibility:
docker build -t dis_running_env:latest .
docker run --rm -it dis_running_env bash
Single Entry Verification
Use verify_res_repeat_rnr() to check if a generated buffer covers the target branch:
from eval import verify_res_repeat_rnr
python_code = '''
def generate_buf():
return b'\\x89PNG\\r\\n\\x1a\\n...'
'''
result = verify_res_repeat_rnr(
python_code,
prog='libpng_read_fuzzer',
src_site_id=934,
to_take=1,
N_repeat=10 # Number of attempts
)
# Returns: True if branch covered, False otherwise
Batch Verification
Use verify_multiple() to evaluate multiple entries efficiently:
from eval import verify_multiple
python_codes = [code1, code2, code3, ...]
branches = [(src_site_id, to_take), ...] # Same length as python_codes
results = verify_multiple(
prog='libpng_read_fuzzer',
python_codes=python_codes,
branches=branches,
N_repeat=10,
verbose=True
)
# Returns: [True, False, True, ...]
File Structure
/
βββ dataset.jsonl # DIS-Bench-Lite (555 tasks)
βββ dataset_full.jsonl # DIS-Bench (8267 tasks)
βββ eval.py # Evaluation utilities
βββ config.py # Program and format configurations
βββ Dockerfile # Docker environment setup
βββ targets/ # Instrumented binaries
βββ inst_src_match/ # Branch instrumentation data (*.pkl)
βββ src/ # Source code for all programs
βββ cov_utils/ # Coverage utilities (SeedRunner)
Notes
- All paths inside the Docker image use
/src/as the source code prefix - Each verification attempt has a 1-second timeout and 100MB memory limit
N_repeatallows multiple attempts for non-deterministic generators
- Downloads last month
- 57