Hi, Philipp-
Well, it's not a bug, it's a max buffer length defined in the code. It determines the maximum number of columns a *.1D file can have and still be read in.
This means that you have a *single line* with over 5M values---I guess each of your datasets is a time series of considerable length. Can I ask what you are aiming to do with this gargantuan line? Is there a way to compress it earlier in your calcs? For example, you could use a for-loop and 1dcat/1dtranspose them separately.
Also, I don't think this would be affected by the number of voxels in your ROI mask---this is really about the number of columns you are attempting to put into the file (not rows---that can be larger than this buffer max). Or is the 1dcat command that is producing the error, not 3dmaskdump?
--pt