aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/intmath.c
diff options
context:
space:
mode:
authorAdam Richter <adamrichter4@gmail.com>2019-05-12 05:03:25 -0700
committerMichael Niedermayer <michael@niedermayer.cc>2019-05-13 14:09:27 +0200
commit280f5c4fcfc9ce14035d0f66e4ad01e489c2194e (patch)
tree9594f8612b14c0892abc6469f76457354052e3ac /libavutil/intmath.c
parenta649b62b903c2d15070dd464406e4886346793df (diff)
downloadffmpeg-280f5c4fcfc9ce14035d0f66e4ad01e489c2194e.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 'libavutil/intmath.c')
0 files changed, 0 insertions, 0 deletions