Re: [PATCH] vsprintf.c cleanups

2005-02-27 Thread Geert Uytterhoeven
On Fri, 25 Feb 2005, Horst von Brand wrote: > Brian Gerst <[EMAIL PROTECTED]> said: > > Horst von Brand wrote: > > > Brian Gerst <[EMAIL PROTECTED]> said: > > > > > >>- Make sprintf call vsnprintf directly > > >>- use INT_MAX for sprintf and vsprintf > > > > This is the size limit on what is writ

Re: [PATCH] vsprintf.c cleanups

2005-02-25 Thread Horst von Brand
Brian Gerst <[EMAIL PROTECTED]> said: > Horst von Brand wrote: > > Brian Gerst <[EMAIL PROTECTED]> said: > > > >>- Make sprintf call vsnprintf directly > >>- use INT_MAX for sprintf and vsprintf > > This is the size limit on what is written. 4GiB sounds a bit extreme... > Sprintf has no limit, w

Re: [PATCH] vsprintf.c cleanups

2005-02-25 Thread Arjan van de Ven
On Fri, 2005-02-25 at 07:28 -0500, Brian Gerst wrote: > Horst von Brand wrote: > > Brian Gerst <[EMAIL PROTECTED]> said: > > > >>- Make sprintf call vsnprintf directly > >>- use INT_MAX for sprintf and vsprintf > > > > > > This is the size limit on what is written. 4GiB sounds a bit extreme... >

Re: [PATCH] vsprintf.c cleanups

2005-02-25 Thread Brian Gerst
Horst von Brand wrote: Brian Gerst <[EMAIL PROTECTED]> said: - Make sprintf call vsnprintf directly - use INT_MAX for sprintf and vsprintf This is the size limit on what is written. 4GiB sounds a bit extreme... Sprintf has no limit, which is why it's generally bad to use it. I just replaced an o

Re: [PATCH] vsprintf.c cleanups

2005-02-25 Thread Horst von Brand
Brian Gerst <[EMAIL PROTECTED]> said: > - Make sprintf call vsnprintf directly > - use INT_MAX for sprintf and vsprintf This is the size limit on what is written. 4GiB sounds a bit extreme... -- Dr. Horst H. von Brand User #22616 counter.li.org Departamento de Informatica

[PATCH] vsprintf.c cleanups

2005-02-24 Thread Brian Gerst
- Make sprintf call vsnprintf directly - use INT_MAX for sprintf and vsprintf Signed-off-by: Brian Gerst <[EMAIL PROTECTED]> vsprintf.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -urN linux-2.6.11-rc5/lib/vsprintf.c linux/lib/vsprintf.c --- linux-2.6.11-rc5/lib/vsprintf.c