[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #UBZ-355729]: NetCDF 64-bit offset bug with large records



Hi Nath,

> I am a colleague of Chuck at EXA Corp. We found that while the write
> issue with large records was fixed in this version, there is still an
> issue on the read side. I am attaching a modified version of your
> large_files.c test program which demonstrates the issue. The following
> patch appears to fix the read issue.
> 
> % diff 4.2.1.1-0{2,3}/amd64_linux_pic/src/libsrc/v1hpg.c
> 1120,1121c1120,1121
> <                        if((*vpp)->len == UINT32_MAX)
> <                            ncp->recsize += (*vpp)->dsizes[0];
> ---
> 
> >                        if((*vpp)->len == UINT32_MAX) /* Flag for large last 
> > record */
> >                            ncp->recsize += (*vpp)->dsizes[0] * (*vpp)->xsz;
> 
> Regards,
> Nath

Thanks for the excellent test and fix!  I've committed both into our current 
development 
trunk, so they'll be in the next release, version 4.3.1.

--Russ

Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: UBZ-355729
Department: Support netCDF
Priority: Critical
Status: Closed


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.