questions > dcm2niix buffer overflow with PAR/REC
Showing 1-3 of 3 posts
Display:
Results per page:
Aug 29, 2016  11:08 AM | kasper andersen
dcm2niix buffer overflow with PAR/REC
Hello,
I'm trying to convert some Philips data in PAR/REC format with dcm2niix, but I get this error:

*** buffer overflow detected ***: dcm2niix terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7338f)[0x7fb8ef27238f]
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7fb8ef309c9c]
/lib/x86_64-linux-gnu/libc.so.6(+0x109b60)[0x7fb8ef308b60]
dcm2niix[0x40640f]
dcm2niix[0x416c05]
dcm2niix[0x417430]
dcm2niix[0x4018b5]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7fb8ef220ec5]
dcm2niix[0x401abb]
======= Memory map: ========
00400000-0041b000 r-xp 00000000 00:1f 5791674 /mnt/depot64/dcm2niix/24Nov2014/console/dcm2niix
0061a000-0061b000 r--p 0001a000 00:1f 5791674 /mnt/depot64/dcm2niix/24Nov2014/console/dcm2niix
0061b000-0061c000 rw-p 0001b000 00:1f 5791674 /mnt/depot64/dcm2niix/24Nov2014/console/dcm2niix
00d01000-00d22000 rw-p 00000000 00:00 0 [heap]
7fb8eefe9000-7fb8eefff000 r-xp 00000000 08:01 4194461 /lib/x86_64-linux-gnu/libgcc_s.so.1
7fb8eefff000-7fb8ef1fe000 ---p 00016000 08:01 4194461 /lib/x86_64-linux-gnu/libgcc_s.so.1
7fb8ef1fe000-7fb8ef1ff000 rw-p 00015000 08:01 4194461 /lib/x86_64-linux-gnu/libgcc_s.so.1
7fb8ef1ff000-7fb8ef3ba000 r-xp 00000000 08:01 4198768 /lib/x86_64-linux-gnu/libc-2.19.so
7fb8ef3ba000-7fb8ef5b9000 ---p 001bb000 08:01 4198768 /lib/x86_64-linux-gnu/libc-2.19.so
7fb8ef5b9000-7fb8ef5bd000 r--p 001ba000 08:01 4198768 /lib/x86_64-linux-gnu/libc-2.19.so
7fb8ef5bd000-7fb8ef5bf000 rw-p 001be000 08:01 4198768 /lib/x86_64-linux-gnu/libc-2.19.so
7fb8ef5bf000-7fb8ef5c4000 rw-p 00000000 00:00 0
7fb8ef5c4000-7fb8ef6c9000 r-xp 00000000 08:01 4198738 /lib/x86_64-linux-gnu/libm-2.19.so
7fb8ef6c9000-7fb8ef8c8000 ---p 00105000 08:01 4198738 /lib/x86_64-linux-gnu/libm-2.19.so
7fb8ef8c8000-7fb8ef8c9000 r--p 00104000 08:01 4198738 /lib/x86_64-linux-gnu/libm-2.19.so
7fb8ef8c9000-7fb8ef8ca000 rw-p 00105000 08:01 4198738 /lib/x86_64-linux-gnu/libm-2.19.so
7fb8ef8ca000-7fb8ef8e2000 r-xp 00000000 08:01 4199066 /lib/x86_64-linux-gnu/libz.so.1.2.8
7fb8ef8e2000-7fb8efae1000 ---p 00018000 08:01 4199066 /lib/x86_64-linux-gnu/libz.so.1.2.8
7fb8efae1000-7fb8efae2000 r--p 00017000 08:01 4199066 /lib/x86_64-linux-gnu/libz.so.1.2.8
7fb8efae2000-7fb8efae3000 rw-p 00018000 08:01 4199066 /lib/x86_64-linux-gnu/libz.so.1.2.8
7fb8efae3000-7fb8efb06000 r-xp 00000000 08:01 4198762 /lib/x86_64-linux-gnu/ld-2.19.so
7fb8efcd7000-7fb8efcdb000 rw-p 00000000 00:00 0
7fb8efcff000-7fb8efd05000 rw-p 00000000 00:00 0
7fb8efd05000-7fb8efd06000 r--p 00022000 08:01 4198762 /lib/x86_64-linux-gnu/ld-2.19.so
7fb8efd06000-7fb8efd07000 rw-p 00023000 08:01 4198762 /lib/x86_64-linux-gnu/ld-2.19.so
7fb8efd07000-7fb8efd08000 rw-p 00000000 00:00 0
7fffe7393000-7fffe73fa000 rw-p 00000000 00:00 0 [stack]
7fffe73fe000-7fffe7400000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Aborted (core dumped)

Do you have any ideas of what could be wrong? The conversion works fine with the older version of the software (dcm2nii), but it could be nice if I could use the same tool for all my data.

Best,
Kasper
Aug 29, 2016  12:08 PM | Chris Rorden
RE: dcm2niix buffer overflow with PAR/REC
Kasper-
 1.) Can you tell me the version of dcm2niix you are using (e.g. 28Aug2016) and the operating system (e.g. OSX, Windows, Linux)?
 2.) Can you check to see if the problem still exists with the latest version (28Aug2016, available on GitHub).
 3.) If the above do not fix your problem, can you email me a link to an example. I do not have a Philips scanner near me.
Aug 29, 2016  01:08 PM | kasper andersen
RE: dcm2niix buffer overflow with PAR/REC
Hi Chris,
I was using an old version (24Nov2014). Updating to the newest version (28Aug2016) did actually solve the problem. 

Thanks for your suggestion!

Best,
Kasper