From 695b3c51d1c79c42ae6754942c56caa2e08800d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Fri, 28 Apr 2023 02:20:36 +0200 Subject: vo_gpu_next: fix off by one in info_callback Fixes invalid memory writes. --- video/out/vo_gpu_next.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video') diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index 3b63a941e6..e614db2fea 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -744,7 +744,7 @@ static void info_callback(void *priv, const struct pl_render_info *info) { struct vo *vo = priv; struct priv *p = vo->priv; - if (info->index > VO_PASS_PERF_MAX) + if (info->index >= VO_PASS_PERF_MAX) return; // silently ignore clipped passes, whatever struct mp_frame_perf *frame; -- cgit v1.2.3