aboutsummaryrefslogtreecommitdiffstats
path: root/tests/api/api-seek-test.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-03-18 16:16:33 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-03-21 04:30:09 +0100
commit65154ba99442134a2f732f2213699fc38dc6727a (patch)
tree97e079c6ab0db04da33feba11b88ae6e8a7b785a /tests/api/api-seek-test.c
parentdff498fddfaee28c825af324d4444aa2ec8ce6a9 (diff)
downloadffmpeg-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