IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28254


Ignore:
Timestamp:
Jun 7, 2010, 5:09:57 PM (16 years ago)
Author:
Paul Price
Message:

Fix SEGV from !readout->image.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackTarget.c

    r28253 r28254  
    144144
    145145        if (numCols == 0 && numRows == 0) {
    146             numCols = readout->image->numCols;
    147             numRows = readout->image->numRows;
    148         } else if (numCols != readout->image->numCols ||
    149                    numRows != readout->image->numRows) {
     146            numCols = readout->variance->numCols;
     147            numRows = readout->variance->numRows;
     148        } else if (numCols != readout->variance->numCols ||
     149                   numRows != readout->variance->numRows) {
    150150            psError(PPSTACK_ERR_ARGUMENTS, true, "Sizes of input images don't match: %dx%d vs %dx%d",
    151                     readout->image->numCols, readout->image->numRows, numCols, numRows);
     151                    readout->variance->numCols, readout->variance->numRows, numCols, numRows);
    152152            psFree(rng);
    153153            return NULL;
Note: See TracChangeset for help on using the changeset viewer.