Changeset 1f87c1b


Ignore:
Timestamp:
Apr 30, 2016, 6:34:06 AM (4 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:
7498e48
Parents:
437ef07
Message:

python/ext/py-fft.c: check rdo input cvec has correct size

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • .travis.yml

    r437ef07 r1f87c1b  
    6464
    6565script:
    66   - make create_test_sounds
     66  - echo make create_test_sounds disabled for now
    6767  - make build
    6868  - make build_python
  • python/ext/py-fft.c

    r437ef07 r1f87c1b  
    122122  }
    123123
     124  if (self->cvecin.length != self->win_s / 2 + 1) {
     125    PyErr_Format(PyExc_ValueError,
     126                 "input array has length %d, but fft input has size %d",
     127                 self->vecin.length, self->win_s / 2 + 1);
     128    return NULL;
     129  }
     130
    124131  fvec_t out;
    125132  Py_INCREF(self->rdoout);
Note: See TracChangeset for help on using the changeset viewer.