Message192352
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. |
|
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 | |
|