diff options
author | Adam Richter <adamrichter4@gmail.com> | 2019-05-12 05:03:25 -0700 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-11-14 23:30:37 +0100 |
commit | a0966c15b1747b93dd3b9da6d29b2b12dccf6733 (patch) | |
tree | ad23a3384598970a84adc3ee80c216da3dfc23db /libavcodec/dnxhd_parser.c | |
parent | 9f8d2716a6419bd622d394961214303ae4667d85 (diff) | |
download | ffmpeg-a0966c15b1747b93dd3b9da6d29b2b12dccf6733.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 'libavcodec/dnxhd_parser.c')
0 files changed, 0 insertions, 0 deletions