mirror of https://github.com/FFmpeg/FFmpeg.git
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>pull/311/head
parent
f1c9d6fe70
commit
b8ed493061
1 changed files with 2 additions and 2 deletions
Loading…
Reference in new issue