Message252523
No modifications need to be made to the small object allocator. The malloc situation was just an example, it does not mean that setting pointer bounds occurs only in a malloc call. It also occurs when you declare a static array or when you initialize a new pointer:
int *x = (int*)malloc(10 * sizeof(int));
int *y = x; // the bounds for x will be passed on to y
When using "fcheck-pointer-bounds -mmpx" _all_ memory accesses will be instrumented. |
|
Date |
User |
Action |
Args |
2015-10-08 09:29:39 | florin.papa | set | recipients:
+ florin.papa, rhettinger, pitrou, vstinner, r.david.murray, skrah, zach.ware |
2015-10-08 09:29:39 | florin.papa | set | messageid: <1444296579.84.0.74729825377.issue25300@psf.upfronthosting.co.za> |
2015-10-08 09:29:39 | florin.papa | link | issue25300 messages |
2015-10-08 09:29:39 | florin.papa | create | |
|