]> git.kaiwu.me - quickjs.git/commit
Add fuzz targets for ES6 modules, JSON, RegExp, and bytecode (#512)
authorMolefi Ramontseng <64338860+Molefi1146@users.noreply.github.com>
Thu, 4 Jun 2026 09:50:35 +0000 (11:50 +0200)
committerGitHub <noreply@github.com>
Thu, 4 Jun 2026 09:50:35 +0000 (11:50 +0200)
commit8b045501f92617951060ffb31f9db0be745195d9
treee4a31b128a2fa02ab25a3bac935c3a315a2c4719
parentcfc846a31c5b60130ca02d121932438bcfc94cd1
Add fuzz targets for ES6 modules, JSON, RegExp, and bytecode (#512)

* Add fuzz targets for ES6 modules, JSON, RegExp, and bytecode

Adds 4 new fuzzers targeting high-complexity, low-coverage functions:

- fuzz_module_export: Tests ES6 module export/import parsing (complexity 6727)

- fuzz_json: Tests JSON stringify/parse (complexity ~5000)

- fuzz_regexp_compile: Tests RegExp compilation (complexity 5528)

- fuzz_bytecode: Tests bytecode execution (complexity 5383)

Identified by Fuzz Introspector as having 0% runtime coverage.

Build integration for fuzz/Makefile and build.sh included.

* Convert fuzz targets from C++ to C and use standard C headers
fuzz/fuzz_bytecode.c [new file with mode: 0644]
fuzz/fuzz_json.c [new file with mode: 0644]
fuzz/fuzz_module_export.c [new file with mode: 0644]
fuzz/fuzz_regexp_compile.c [new file with mode: 0644]