diff options
author | Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com> | 2018-08-22 17:30:30 +0530 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-23 07:45:32 +0100 |
commit | eee93149a49274dc3deed7d89754ee4bda240575 (patch) | |
tree | 5bcda340da70577d75a9cf0d44afddf742817568 /scripts/lib/scriptutils.py | |
parent | ad842a3a0e6ef78fb9449362753ae3592c775192 (diff) | |
download | openembedded-core-eee93149a49274dc3deed7d89754ee4bda240575.tar.gz openembedded-core-eee93149a49274dc3deed7d89754ee4bda240575.tar.bz2 openembedded-core-eee93149a49274dc3deed7d89754ee4bda240575.zip |
libsndfile1: CVE-2017-14634
double64_init: Check psf->sf.channels against upper bound
This prevents division by zero later in the code.
While the trivial case to catch this (i.e. sf.channels < 1) has already
been covered, a crafted file may report a number of channels that is
so high (i.e. > INT_MAX/sizeof(double)) that it "somehow" gets
miscalculated to zero (if this makes sense) in the determination of the
blockwidth. Since we only support a limited number of channels anyway,
make sure to check here as well.
CVE-2017-14634
Closes: #318
Affects libsndfile1 = 1.0.28
Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/scriptutils.py')
0 files changed, 0 insertions, 0 deletions