johnsonjh / duma

duma: Detect Unintended Memory Access (D.U.M.A.) - A Red-Zone memory allocator
https://github.com/johnsonjh/duma
GNU General Public License v2.0
99 stars 10 forks source link

Duration of tstheap #191

Open PeterBBBBB opened 2 years ago

PeterBBBBB commented 2 years ago

If the duration argument is not defined at start, the test runs forever. I found for example, running hurd in a VM, there is no response to CTRL-c, so the program cannot be halted without killing the VM

if ( argc >= 2 )
    duration = atoi(argv[1]);

Suggest add an else ( duration = 4000 or whatever).