Comment 10 for bug 1218842

Revision history for this message
Pavel Demin (pavel-demin) wrote :

As a fast fix, I've replaced xdr_getpos/xdr_setpos with ftello/fseeko in some of the mcfio files and set the type of the position variables to off_t.

Now I can generate a 5GB STDHEP file and it does not get corrupted.

Here is a list of modified files in pythia-pgs/libraries/PGS4/src/stdhep-dir/mcfio/src:

mcfio_Block.c
mcfio_Direct.c
mcfio_Util1.c
mcf_NTuIOFiles.c
mcf_xdr.h

You can install the modified files with the following commands:

cd pythia-pgs/libraries/PGS4/src/stdhep-dir/mcfio/src
wget http://cp3.irmp.ucl.ac.be/downloads/pythia-pgs-mcfio-files.tgz
tar -vzxf pythia-pgs-mcfio-files.tgz

Could you, please commit these modifications to the pythia-pgs repository?