I'm wondering how TEMU detects taint propagation.
Here's what I'm trying to do:
I tainted a file data.txt in the second disk and opened it with notepad.exe. In this case, I was tracing notepad.exe and the trace file was successfully generated with tainted data.
However, when I tried to perform similar task using a C program with functions fopen/fread/fwrite, taint propagation did not occur.
I traced the C program, and I got an empty file in this case.
Here are some examples of my C program
Could anyone help me with the problem? Thanks!