IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 9, 2017, 12:47:22 PM (9 years ago)
Author:
eugene
Message:

mostly harmless changes to track down dvopsps segfaults: watch out for Bzero,Bscale in F_set_column.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20170809/src/libfits/table/F_uncompress_T.c

    r39457 r40113  
    267267      unsigned long int Nrows = (row == Ntile - 1) ? ztilelast : ztilelen;
    268268      unsigned long int Nraw = Nrows*fields[i].Nvalues*fields[i].pixsize; // expected number of bytes
     269      unsigned long int Npix_expect = Nrows*fields[i].Nvalues; // expected number of pixels
     270
     271      myAssert (Nraw <= Nraw_alloc, "bad size");
    269272      if (!gfits_uncompress_data (zdata, Nzdata, fields[i].zctype, NULL, NULL, 0, raw, &Nraw, Nraw_alloc, fields[i].pixsize)) ESCAPE;
     273      myAssert (Npix_expect == Nraw, "bad size");
    270274
    271275      if (VERBOSE_DUMP) {
Note: See TracChangeset for help on using the changeset viewer.