vnmakarov / mir

A lightweight JIT compiler based on MIR (Medium Internal Representation) and C11 JIT compiler and interpreter based on MIR
MIT License
2.32k stars 149 forks source link

Memory Corruptions #208

Open elManto opened 3 years ago

elManto commented 3 years ago

poc.tar.gz

I found some memory corruptions while fuzzing c2m for research purposes. They mostly are heap BOFs, and SEGV. To reproduce you just need to compile mir with ASAN enabled and feed ``c2mir'' with one of the POCs which are present in the tar gz I attached.

I did a bit of triage, but there could be some duplicates.

vnmakarov commented 3 years ago

Thank you very much for the fuzzing tests. I'll work on fixing the crashes.