IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25741


Ignore:
Timestamp:
Oct 2, 2009, 11:47:59 AM (17 years ago)
Author:
eugene
Message:

catch error in output skycell size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarpDefine.c

    r21323 r25741  
    6565        int numCols = psMetadataLookupS32(NULL, hdu->header, "NAXIS1"); ///< Number of columns
    6666        int numRows = psMetadataLookupS32(NULL, hdu->header, "NAXIS2"); ///< Number of rows
     67        if ((numCols == 0) || (numRows == 0)) {
     68            psError(PS_ERR_UNKNOWN, false, "skycell has invalid dimensions %d x %d", numCols, numRows);
     69            psFree(view);
     70            return false;
     71        }
    6772
    6873        pmCell *target = pmFPAviewThisCell(view, output->fpa); ///< Target cell
Note: See TracChangeset for help on using the changeset viewer.