GGEMS / ggems

GGEMS - Advanced Monte Carlo simulation platform using the OpenCL
GNU General Public License v3.0
32 stars 13 forks source link

HEAP corruption in GGEMSAttenuation.cc #20

Open Ribel38 opened 1 year ago

Ribel38 commented 1 year ago

Hi!

In the constructor for GGEMSAttenuation, the array "muindex" is being written one too many times. It has a length of "kMuNbElements" (92) but is being written 93 times in the for loop here

This creates a heap corruption error. I suppose this is a very quick fix