From 15fda84a78bca9dfce3e9c07531379967f84f9c8 Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Wed, 2 May 2007 09:56:37 +0000 Subject: Fix for a divide by zero that can be triggered by a malicious client. Problem reported by Derek Abdine of rapid7.com, patch by Keith Packard. --- xserver/render/renderedge.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xserver/render') diff --git a/xserver/render/renderedge.c b/xserver/render/renderedge.c index 699e25254..226878860 100644 --- a/xserver/render/renderedge.c +++ b/xserver/render/renderedge.c @@ -1,5 +1,5 @@ /* - * $Id: renderedge.c,v 1.1 2006/11/26 18:16:21 matthieu Exp $ + * $Id: renderedge.c,v 1.2 2007/05/02 09:56:36 matthieu Exp $ * * Copyright © 2004 Keith Packard * @@ -143,6 +143,7 @@ RenderEdgeInit (RenderEdge *e, dx = x_bot - x_top; dy = y_bot - y_top; e->dy = dy; + e->dx = 0; if (dy) { if (dx >= 0) -- cgit v1.2.3