You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
tests/checkasm/vp9dsp: Use snprintf() for safetey
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -143,11 +143,13 @@ static void check_mc(void)
|
|||||||
for (dx = 0; dx < 2; dx++) {
|
for (dx = 0; dx < 2; dx++) {
|
||||||
for (dy = 0; dy < 2; dy++) {
|
for (dy = 0; dy < 2; dy++) {
|
||||||
if (dx || dy) {
|
if (dx || dy) {
|
||||||
sprintf(str, "%s_%s_%d%s", op_names[op],
|
snprintf(str, sizeof(str),
|
||||||
|
"%s_%s_%d%s", op_names[op],
|
||||||
filter_names[filter], size,
|
filter_names[filter], size,
|
||||||
subpel_names[dy][dx]);
|
subpel_names[dy][dx]);
|
||||||
} else {
|
} else {
|
||||||
sprintf(str, "%s%d", op_names[op], size);
|
snprintf(str, sizeof(str),
|
||||||
|
"%s%d", op_names[op], size);
|
||||||
}
|
}
|
||||||
if (check_func(dsp.mc[hsize][filter][op][dx][dy],
|
if (check_func(dsp.mc[hsize][filter][op][dx][dy],
|
||||||
"vp9_%s_%dbpp", str, bit_depth)) {
|
"vp9_%s_%dbpp", str, bit_depth)) {
|
||||||
|
Reference in New Issue
Block a user