Fixed uncaught exception in testbufferoverrun.cpp