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/cmd.data/squash3d.c

    r38062 r39233  
    4646        int oNx = iNz;
    4747        int oNy = iNy;
    48         CreateBuffer (tgt, oNx, oNy, -32, 0.0, 1.0);
     48        if (!CreateBuffer (tgt, oNx, oNy, -32, 0.0, 1.0)) return FALSE;
    4949        float *oBuf  = (float *) tgt[0].matrix.buffer;
    5050
     
    7070        int oNx = iNx;
    7171        int oNy = iNz;
    72         CreateBuffer (tgt, oNx, oNy, -32, 0.0, 1.0);
     72        if (!CreateBuffer (tgt, oNx, oNy, -32, 0.0, 1.0)) return FALSE;
    7373        float *oBuf  = (float *) tgt[0].matrix.buffer;
    7474
     
    9494        int oNx = iNx;
    9595        int oNy = iNy;
    96         CreateBuffer (tgt, oNx, oNy, -32, 0.0, 1.0);
     96        if (!CreateBuffer (tgt, oNx, oNy, -32, 0.0, 1.0)) return FALSE;
    9797        float *oBuf  = (float *) tgt[0].matrix.buffer;
    9898
Note: See TracChangeset for help on using the changeset viewer.