Message92146
| Author |
boya |
| Recipients |
belopolsky, boya, gregory.p.smith, jnferguson, lemburg, nnorwitz |
| Date |
2009年09月01日.22:59:04 |
| SpamBayes Score |
0.006446739 |
| Marked as misclassified |
No |
| Message-id |
<1251845945.8.0.663171060723.issue2620@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
In Python/pyarena.c:
block_new(size_t size)
{
/* Allocate header and block as one unit.
ab_mem points just past header. */
block *b = (block *)malloc(sizeof(block) + size);
...
}
Should a check for overflow of "size" also be performed before calling
"malloc"? |
|