You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is (at least) two memory leaks in nifti_image_from_ascii. The nim->iname member will be overwritten, with a new allocated string, as many times as the image_filename attribute is repeated in the file. Thus, the previous iname reference will be lost. Same happens with fname and header_filename.
There is (at least) two memory leaks in
nifti_image_from_ascii
. Thenim->iname
member will be overwritten, with a new allocated string, as many times as theimage_filename
attribute is repeated in the file. Thus, the previous iname reference will be lost. Same happens with fname andheader_filename
.Here are the affected lines:
nifti_clib/niftilib/nifti1_io.c
Line 6556 in 3146cac
nifti_clib/niftilib/nifti1_io.c
Line 6559 in 3146cac
Here is the test with the included
nifti1_test
and the backtrace produced by ASAN:Here are the samples to reproduce the behaviour:
tests.zip
The text was updated successfully, but these errors were encountered: