C or C++ : Tainted buffer underflow