Changeset 767990e for src/fmat.c


Ignore:
Timestamp:
Nov 28, 2013, 9:51:15 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
83d2948
Parents:
41eff53
Message:

src/{fvec,cvec,lvec,fmat}.c: make sure new_ functions return NULL if length <= 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/fmat.c

    r41eff53 r767990e  
    2323
    2424fmat_t * new_fmat (uint_t length, uint_t height) {
     25  if ((sint_t)length <= 0 || (sint_t)height <= 0 ) {
     26    return NULL;
     27  }
    2528  fmat_t * s = AUBIO_NEW(fmat_t);
    2629  uint_t i,j;
Note: See TracChangeset for help on using the changeset viewer.