Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMark Harris <mark.hsj@gmail.com>2016-11-06 07:32:28 +0300
committerMark Harris <mark.hsj@gmail.com>2016-11-06 07:32:28 +0300
commitd74fa2785a7ca3d25767e90bbc09c11cfcf07349 (patch)
treef71fbd535bcfcb31125e136576bb8ab67ee3ab1d /tests
parent132ed59464dccaae8f1e2f13f168763e99f85d17 (diff)
Fix crash on bad encoder frame_size argument
Diffstat (limited to 'tests')
-rw-r--r--tests/test_opus_encode.c1
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++)
{