My goal is to create a system able to take a c/c++ source code or conpiled code as input and inject errors runtime and take informations for statistical purposes.
I'm taking care of soft errors, it means that a hw component can fail due to some interferences from environment and space radiations, which can be a Bit that flips randomly in the computer architecture or some other type of errors. These errors generate high level errors like kernel error and user process error like a wrong pointer to a memory location, segmentation fault, the bit of an array flip randomly and so on.
Now what i need for my application is a library, or a tool/api that i can integrate in my application (that will be written in c/c++) that injects or simulate the mentionated errors or something similar