Is python buffer overflow proof?

Jizzai jizzai at gmail.com
Sun Aug 2 09:50:14 EDT 2009


Is a _pure_ python program buffer overflow proof?

For example in C++ you can declare a char[9] to hold user input.
If the user inputs 10+ chars a buffer overflow occurs.

In python, I cannot seem to find a way to define/restrict a string length.
This is probably by design and raises the topic in question.

Am curious to see the opinions of people who know.

TIA.



More information about the Python-list mailing list