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

testalloc0.cpp crashes #189

Closed PeterBBBBB closed 2 months ago

PeterBBBBB commented 2 years ago

Experimental test testalloc0.cpp crashes around line 80

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

args are indexed from zero, so I think code should be

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

johnsonjh commented 2 years ago

Thanks, I'll look at this today. I hope to get a new release out soon.