![]() |
|
|
|||||||
![]() |
Python - Re: Is python buffer overflow proof? |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Marcus Wanner schrieb:
> On 8/2/2009 10:43 AM, Christian Heimes wrote: >> Marcus Wanner wrote: >>> I believe that python is buffer overflow proof. In fact, I think that >>> even ctypes is overflow proof... >> >> No, ctypes isn't buffer overflow proof. ctypes can break and crash a >> Python interpreter easily. >> >> Christian >> > I see. I thought that it said "invalid array index" when you try to > read/write outside of an array's bounds, though... But you can cast the resulting pointer to an array of larger size, and there you are. Diez Diez B. Roggisch |
|
|
|
|
#2 |
|
Posts: n/a
|
Marcus Wanner wrote:
> On 8/3/2009 3:45 AM, Diez B. Roggisch wrote: >> But you can cast the resulting pointer to an array of larger size, and >> there you are. > > Ah, that makes sense. I had forgotten about ctypes.cast(). You *can* shoot yourself in the foot with Python, you just have to aim much more carefully than you do with C/C++. -tkc Tim Chase |
|
|
|
#3 |
|
Posts: n/a
|
On Aug 4, 2:27*pm, Tim Chase <python.l...@tim.thechases.com> wrote:
> You *can* shoot yourself in the foot with Python, you just have > to aim much more carefully than you do with C/C++. You can e.g. define a class with a __del__ method and make some circular references. That should give you a nice memory leak. sturlamolden |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Computer Security | aldrich.chappel.com.use@gmail.com | A+ Certification | 0 | 11-27-2007 02:11 AM |
| Death Proof is a loser.... | Jordan | DVD Video | 10 | 09-29-2007 12:31 AM |
| Re: YOU ALL NEED TO SEE THIS JAW DROPPING PROOF THAT THE U.S. ADMINISTRATION WAS 100 % BEHIND THE SEPT 11 ATTACKS | RichA | DVD Video | 4 | 12-03-2005 03:10 PM |
| YOU ALL NEED TO SEE THIS JAW DROPPING PROOF THAT THE U.S. ADMINISTRATION WAS 100 % BEHIND THE SEPT 11 ATTACKS | lharmen | DVD Video | 1 | 06-26-2005 07:33 AM |
| Newbie question - Buffer underruns and Nerovision Express | telba most | DVD Video | 1 | 03-07-2005 11:14 PM |