diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-03-18 16:16:33 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-03-21 04:30:09 +0100 |
commit | 65154ba99442134a2f732f2213699fc38dc6727a (patch) | |
tree | 97e079c6ab0db04da33feba11b88ae6e8a7b785a /tests/api/api-seek-test.c | |
parent | dff498fddfaee28c825af324d4444aa2ec8ce6a9 (diff) | |
download | ffmpeg-65154ba99442134a2f732f2213699fc38dc6727a.tar.gz |
swscale/tests/swscale: Fix potential buffer overflow
The field width in a %s directive gives the amount of characters
to read from the input and not the size of the receiving buffer;
the latter must be of course also have space for the trailing \0
which has been forgotten here. The commit adds it (and fixes a
-Wfortify-source warning from Clang).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'tests/api/api-seek-test.c')
0 files changed, 0 insertions, 0 deletions