diff options
author | Mark Harris <mark.hsj@gmail.com> | 2016-11-05 21:32:28 -0700 |
---|---|---|
committer | Mark Harris <mark.hsj@gmail.com> | 2016-11-05 21:32:28 -0700 |
commit | d74fa2785a7ca3d25767e90bbc09c11cfcf07349 (patch) | |
tree | f71fbd535bcfcb31125e136576bb8ab67ee3ab1d /tests | |
parent | 132ed59464dccaae8f1e2f13f168763e99f85d17 (diff) | |
download | opus-d74fa2785a7ca3d25767e90bbc09c11cfcf07349.tar.gz |
Fix crash on bad encoder frame_size argument
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_opus_encode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_opus_encode.c b/tests/test_opus_encode.c index ae54bb60..b8427138 100644 --- a/tests/test_opus_encode.c +++ b/tests/test_opus_encode.c @@ -384,6 +384,7 @@ int run_test1(int no_fuzz) if(opus_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_AUTO))!=OPUS_OK)test_failed(); if(opus_encoder_ctl(enc, OPUS_SET_FORCE_MODE(-2))!=OPUS_BAD_ARG)test_failed(); + if(opus_encode(enc, inbuf, 500, packet, MAX_PACKET)!=OPUS_BAD_ARG)test_failed(); for(rc=0;rc<3;rc++) { |