IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 22, 2015, 8:06:35 AM (11 years ago)
Author:
eugene
Message:

report data error explicitly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150625/Ohana/src/libfits/extern/gzip.c

    r38441 r38611  
    215215  err = inflate(&stream, Z_FINISH);
    216216  if (err != Z_STREAM_END) {
     217    if (err == Z_DATA_ERROR) {
     218      fprintf (stderr, "compressed data is corrupted\n");
     219      ESCAPE(err);
     220    }
    217221    inflateEnd(&stream);
    218222    if (err == Z_NEED_DICT || (err == Z_BUF_ERROR && stream.avail_in == 0)) ESCAPE (Z_DATA_ERROR);
Note: See TracChangeset for help on using the changeset viewer.