[Patches] Fix for bug PR#341
M.-A. Lemburg
mal@lemburg.com
Sat, 27 May 2000 21:57:56 +0200
"Fred L. Drake" wrote:
>
> On Sat, 27 May 2000, M.-A. Lemburg wrote:
> > Fix to avoid buffer overruns in %-formatting of integers.
>
> Marc-Andre,
> I've not read the files you're patching for this one, but is this really
> the right patch? How did you come up with 50?
Simple: the code for the float formatting uses the same
limit and I find it reasonably high to not cause any
harm to existing programs.
> I'm also not comfortable with the magic numbers in the source.
Well, the limits seem arbitrary, but then: who will want
to print integers with more than 40 digits (2^128 + sign) ?
--
Marc-Andre Lemburg
______________________________________________________________________
Business: http://www.lemburg.com/
Python Pages: http://www.lemburg.com/python/