From b8a06cdc239e91606a9db60964c612084fcd1d5c Mon Sep 17 00:00:00 2001 From: Federico Molara Date: Sun, 1 Nov 2026 10:49:43 +0100 Subject: [PATCH] Plugins (JESS): Initialize the scalar 8-bit blur bound The non-MMX 8-bit loop uses bmax without initializing it, which can iterate beyond the pixel buffer and crash. Move the existing assignment before the MMX/non-MMX branch so both paths use the same initialized bound. --- libvisual-plugins/plugins/actor/JESS/renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvisual-plugins/plugins/actor/JESS/renderer.c b/libvisual-plugins/plugins/actor/JESS/renderer.c index 0c32c86be..a052a4e58 100644 --- a/libvisual-plugins/plugins/actor/JESS/renderer.c +++ b/libvisual-plugins/plugins/actor/JESS/renderer.c @@ -387,8 +387,8 @@ void render_blur(JessPrivate *priv, int blur) /* Il y avait des overflows sur les boucles (indice supérieur trop élevé de 1) */ if (priv->video == 8) { + bmax = priv->resx * (priv->resy-1) + (intptr_t) priv->pixel; if (visual_cpu_get_mmx ()) { - bmax = priv->resx * (priv->resy-1) + (intptr_t) priv->pixel; #if defined(VISUAL_ARCH_X86) || defined(VISUAL_ARCH_X86_64) __asm __volatile ("\n\t pxor %%mm6, %%mm6"