Is python buffer overflow proof?

Marcus Wanner marcusw at cox.net
Sun Aug 2 10:32:39 EDT 2009


On 8/2/2009 9:50 AM, Jizzai wrote:
> 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.
I believe that python is buffer overflow proof. In fact, I think that 
even ctypes is overflow proof...

Marcus



More information about the Python-list mailing list