{"id":37998847,"url":"https://github.com/echel0nn/brainflow-fuzz","last_synced_at":"2026-01-16T19:01:25.824Z","repository":{"id":50265545,"uuid":"517498138","full_name":"echel0nn/brainflow-fuzz","owner":"echel0nn","description":"more like brain overflow - an attempt to fuzz data_handler::read_file","archived":false,"fork":false,"pushed_at":"2022-11-08T02:28:46.000Z","size":106,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-03-10T22:26:30.674Z","etag":null,"topics":["afl-fuzzer","brainflow","cpp"],"latest_commit_sha":null,"homepage":"https://github.com/brainflow-dev/brainflow","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/echel0nn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-25T02:59:44.000Z","updated_at":"2022-07-28T21:37:25.000Z","dependencies_parsed_at":"2023-01-21T06:01:24.195Z","dependency_job_id":null,"html_url":"https://github.com/echel0nn/brainflow-fuzz","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/echel0nn/brainflow-fuzz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echel0nn%2Fbrainflow-fuzz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echel0nn%2Fbrainflow-fuzz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echel0nn%2Fbrainflow-fuzz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echel0nn%2Fbrainflow-fuzz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/echel0nn","download_url":"https://codeload.github.com/echel0nn/brainflow-fuzz/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echel0nn%2Fbrainflow-fuzz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28481368,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["afl-fuzzer","brainflow","cpp"],"created_at":"2026-01-16T19:01:25.179Z","updated_at":"2026-01-16T19:01:25.769Z","avatar_url":"https://github.com/echel0nn.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# brainflow-fuzz\nan attempt to fuzz stream write/read \n\n\n## Test `cpp` harness locally \n\n1) `git clone https://github.com/brainflow-dev/brainflow.git`\n2) `mkdir build`\n3) `cd build`\n4) `cmake -DCMAKE_CXX_COMPILER=afl-clang-fast++ ..`\n5) create `Makefile` \u0026 save\n\n6) Prepare [harness.cpp](./harness.cpp)\n\n```\ntest_harness: harness.cpp\n\tafl-clang-fast++ -v harness.cpp $(INC) ./CMakeFiles/BoardController.dir/third_party/ant_neuro/eemagine/sdk/wrapper.cc.o -o harness  $(INCC) $(INCCC) -I../third_party/json/\n```\n7) run afl-fuzz with default settings: `AFL_AUTORESEUME=1 afl-fuzz -D -L0 -i samples/ -t 80 -o sync_dir -M fuzzer00 -- ./harness @@`\n\n### Compile the test binary if compiled successfully\n\n1) `make test_brain`\n2) `./test` [test](./test.cpp)\n\n```\n##########################\n###############TEST-CASE##\n\nINCC = \\\n       $(shell find ../cpp_package/ -type d -name \"inc\" | sed s/^/-I/)\nINCCC = \\\n       $(shell find ../src/ -type d -name \"inc\" | sed s/^/-I/)\nINC = \\\n       $(shell find . -type f -name \"*.cpp.o\" | sed 's/^/ /')\n\ntest_brain: test.cpp\n\tafl-clang-fast++ -v test.cpp $(INC) ./CMakeFiles/BoardController.dir/third_party/ant_neuro/eemagine/sdk/wrapper.cc.o -o test  $(INCC) $(INCCC) -I../third_party/json/\n#########################\n```\n\n\n\n\n\n# Test files against python\n\n1) `python -m pip install brainflow`\n2) run `brainflow.py \u003cCRASHER_NAME\u003e` script with a sample\n3) some files are working on `python` library, some of them are crashing on `cpp`\n\n## Reproducing `id:000016,sig:07,src:000010,time:28990834,execs:64400173,op:MOpt_havoc,rep:8` (576) file\n\n1) This file also crashes `cpp` one but in python it is acting little bit weird, i couldnt manage to find the right time to analyze it to find out the root cause yet.\nYou have to test this file with full path of `brainflow.py` for ex: `/home/user/brainflow.py id:000016,sig:07,src:000010,time:28990834,execs:64400173,op:MOpt_havoc,rep:8`\n\n![screen-sc](./screenshots/crash.png)\n\n# [Table of What-Crashes-Where](./STATS.md)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fechel0nn%2Fbrainflow-fuzz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fechel0nn%2Fbrainflow-fuzz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fechel0nn%2Fbrainflow-fuzz/lists"}