IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 5, 2015, 2:07:56 PM (11 years ago)
Author:
eugene
Message:

test for invalid matrix size in CreateBuffer, CreateBuffer3D

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/coordmosaic.c

    r39227 r39233  
    8888  gfits_free_matrix (&bufX[0].matrix);
    8989  gfits_free_header (&bufX[0].header);
    90   CreateBuffer (bufX, Nx, Ny, -32, 0.0, 1.0); // initialized to 0.0 here
     90  if (!CreateBuffer (bufX, Nx, Ny, -32, 0.0, 1.0)) return FALSE; // initialized to 0.0 here
    9191  strcpy (bufX[0].file, "(empty)");
    9292
    9393  gfits_free_matrix (&bufY[0].matrix);
    9494  gfits_free_header (&bufY[0].header);
    95   CreateBuffer (bufY, Nx, Ny, -32, 0.0, 1.0); // initialized to 0.0 here
     95  if (!CreateBuffer (bufY, Nx, Ny, -32, 0.0, 1.0)) return FALSE; // initialized to 0.0 here
    9696  strcpy (bufY[0].file, "(empty)");
    9797
Note: See TracChangeset for help on using the changeset viewer.