Message192352
| Author |
christian.heimes |
| Recipients |
christian.heimes |
| Date |
2013年07月05日.20:02:43 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1373054563.49.0.685653845765.issue18368@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
PyOS_StdioReadline() contains code such as:
p = (char *)PyMem_REALLOC(p, n + incr);
The code looses its pointer to p when realloc fails and has no chance to free the memory in p.
Also the code sets PyExc_OverflowError when incr > INT_MAX but it doesn't return NULL to signal the error. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年07月05日 20:02:43 | christian.heimes | set | recipients:
+ christian.heimes |
| 2013年07月05日 20:02:43 | christian.heimes | set | messageid: <1373054563.49.0.685653845765.issue18368@psf.upfronthosting.co.za> |
| 2013年07月05日 20:02:43 | christian.heimes | link | issue18368 messages |
| 2013年07月05日 20:02:43 | christian.heimes | create |
|