Re: Very large font size crashing X Font Server and Grounding Server to a Halt (was: remote DoS in Mozilla 1.0)

From: Melchior FRANZ (a8603365@unet.univie.ac.at)
Date: Thu Jun 13 2002 - 13:44:59 EST


* Billy O'Connor -- Thursday 13 June 2002 19:34:
> This bit here, in Type1OpenScalable()?
>
> /* heuristic for "maximum" size of pool we'll need: */
> size = 200000 + 120 *

Yes. I simply replaced 120 by 600 after which it processed even the
biggest of my fonts scaled to 1000 points, without aborting. But there
might be bigger fonts.
   Note that there are 2 further places where these (wrong) heuristics
are used, and I changed 120 -> 600 there, too (4 times in summary).
This is, however, no elegant solution. The XFree people discuss meanwhile
to replace the whole type1 stuff by the one from freetype2.

m.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jun 15 2002 - 22:00:29 EST