[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] PATCH needs review. event str buffer over flow



On Tue, Aug 23, 2011 at 7:32 PM, Lenard Lindstrom <len-l@xxxxxxxxx> wrote:
Hi,

Yes, the size calculation looks correct. The '11' is the number of literal characters in the format string. The sizeof(e-type) * 3 is an overestimate of the number of decimal digits in an int of sizeof() bytes. The '1' is a linefeed allowance.

Lenard Lindstrom



Cool, thanks.