BIC-MNI / mni_autoreg

MINC mni_autoreg
Other
8 stars 9 forks source link

blur_volume.c and gradient_volume.c have variables too short for long paths #7

Closed gdevenyi closed 8 years ago

gdevenyi commented 9 years ago

This bug has been lurking for a while. WIth new compilers buffer overflow/stack smashing protection terminate the program when the buffer overflows

./mni_autoreg/mincblur/blur_volume.c:146:    full_outfilename[256];        /* name of output file */
./mni_autoreg/mincblur/gradient_volume.c:128:    full_outfilename[256];        /* name of output file */

This should probably [1024] or larger to accommodate long paths and long filenames.