This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: overflow in vprintf()


> Date: Mon, 30 Oct 2000 17:58:09 -0500
> From: elleron@yahoo.com

> With bash 2.04.11 linked to libc:
> 
> 	bash -o [51200]
> 	bash -o [10240] [10240]
> 	bash -o [10240] -2 [10240]
> 
> where numbers in brackets are replaced by strings of the specified
> length, then examine the resulting core. The problem also occurs with
> gnu ls and various other gnu utilities.

I typed

bash -o `perl -e 'print ("x" x 51200);'`
bash -o `perl -e 'print ("x" x 10240);'` `perl -e 'print ("x" x 10240);'`
bash -o `perl -e 'print ("x" x 10240);'` -2 `perl -e 'print ("x" x 10240);'`

and had no problems on my system with 

GNU C Library development release version 2.1.94, by Roland McGrath et al.
Copyright (C) 1992,93,94,95,96,97,98,99,2000 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 2.96 20000731 (Red Hat Linux 7.0).
Compiled on a Linux 2.4.0-0.23smp system on 2000-10-05.

(which is the current Red Hat Linux 7 libc).

-- 
- Geoffrey Keating <geoffk@cygnus.com>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]