Message155105
| Author |
mrabarnett |
| Recipients |
fijall, mrabarnett |
| Date |
2012年03月07日.18:58:12 |
| SpamBayes Score |
2.3263372e-06 |
| Marked as misclassified |
No |
| Message-id |
<1331146693.31.0.878267466642.issue14212@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
In the function "getstring" in _sre.c, the code obtains a pointer to the characters of the buffer and then releases the buffer.
There's a comment before the release:
/* Release the buffer immediately --- possibly dangerous
but doing something else would require some re-factoring
*/
PyBuffer_Release(&view);
What's happening is that after the mmap is closed the pointer is no longer valid. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年03月07日 18:58:13 | mrabarnett | set | recipients:
+ mrabarnett, fijall |
| 2012年03月07日 18:58:13 | mrabarnett | set | messageid: <1331146693.31.0.878267466642.issue14212@psf.upfronthosting.co.za> |
| 2012年03月07日 18:58:12 | mrabarnett | link | issue14212 messages |
| 2012年03月07日 18:58:12 | mrabarnett | create |
|