buffer overflow
Florian Schulze
florian.proff.schulze at gmx.net
Fri Jan 17 11:06:48 EST 2003
On Thu, 16 Jan 2003 21:36:10 -0800 Chad Netzer <cnetzer at mail.arc.nasa.gov> wrote:
> On Thursday 16 January 2003 20:47, Tim Peters wrote:
>
> > [Martin v. Loewis]
> > > Python does not support buffer overflows, sorry.
>
> > [pmaney at pobox.com]
> > > I'm sure they could be added by a C extension module.
> >
> > They already were, and, curiously enough, by the builtin
> > bufferobject.c. That supplies the builtin, little understood, and
> > easily abused buffer object. For fun, run this:
>
> [snip]
>
> > Chances are high it will die with a segfault before going around the
> > loop 20 times,
>
> My Debian Linux system seems to be missing this feature, in either 2.1
> or 2.2.
>
> <:-)> I thought python code was supposed to be portable. </:-)>
>
> --
> Bay Area Python Interest Group - http://www.baypiggies.net/
>
> Chad Netzer
>
>
This should easily be resolved by proper reference counting. Then it would
point to the old list object, but I think seen pythonically this is even
correct.
Florian
More information about the Python-list
mailing list