diff options
author | Adam Richter <adamrichter4@gmail.com> | 2019-05-12 05:03:25 -0700 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-06-27 17:50:47 +0200 |
commit | b6529605cefbf65425896d7811083f86b10ed3a2 (patch) | |
tree | 33f2c5864b29b6df9ed3755984c180f19c1cef16 /libavfilter/unsharp.h | |
parent | 1d015d840b47643562541fdffd325b8d6622a436 (diff) | |
download | ffmpeg-b6529605cefbf65425896d7811083f86b10ed3a2.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 'libavfilter/unsharp.h')
0 files changed, 0 insertions, 0 deletions