C or C++ : Tainted buffer overflow