aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAdam Richter <adamrichter4@gmail.com>2019-05-12 05:03:25 -0700
committerMichael Niedermayer <michael@niedermayer.cc>2019-11-11 20:18:45 +0100
commit67397bce727855211523da6e35d998182e1bbd86 (patch)
tree86668419b69481125cf368812c5f15c421c39d22 /tests
parent106baf6ccdee9ac22089fe83a42d2bd731b42fe2 (diff)
downloadffmpeg-67397bce727855211523da6e35d998182e1bbd86.tar.gz
libswcale: Fix possible string overflow in test.
In libswcale/tests/swcale.c, the function fileTest() calls sscanf in an argument of "%12s" on character srcStr[] and dstStr[], which are only 12 bytes. So, if the input string is 12 characters, a terminating null byte can be written past the end of these arrays. This bug was found by cppcheck. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit b8ed4930618b170de57a9086e1e9892216454684) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions