codecs/speex: add check in speex_resampler_init_frac/set_rate_frac (CID 1355648).
authorDario Lombardo <lomato@gmail.com>
Mon, 8 Aug 2016 20:10:48 +0000 (22:10 +0200)
committerAnders Broman <a.broman58@gmail.com>
Fri, 19 Aug 2016 11:23:37 +0000 (11:23 +0000)
commit3a7e3057e6aeade67d7fc3bbc89614f5a26e93d1
treee0314bee6d38acf8d50f308035a6f5267035ddf9
parentc3a8a0ce8ad391bda135fe39f304cc23e3025101
codecs/speex: add check in speex_resampler_init_frac/set_rate_frac (CID 1355648).

Add checks to avoid den_rate and num_rate to be set to 0.

Change-Id: Ia4880521e7ab73d0fdc44377f4badadb09365471
Reviewed-on: https://code.wireshark.org/review/16963
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
codecs/speex/resample.c