Skip to content
Snippets Groups Projects
Commit 25b27a9c authored by Mark Harris's avatar Mark Harris Committed by Jean-Marc Valin
Browse files

multistream: improve arg check


Avoid undefined behavior (signed arithmetic overflow) or
implementation-defined behavior (malloc(0)) on out-of-range arguments,
e.g. opus_multistream_encoder_create(48000, 2, 2147483647, 1, ...)
or opus_multistream_surround_encoder_create(48000, 3, 0, ...).

Signed-off-by: default avatarJean-Marc Valin <jmvalin@jmvalin.ca>
parent d10755e9
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment