Message288699
GCC allows to get "size" parameters of functions allocating memory to emit better warning. For example, GCC 7 will detect implicit cast from signed to unsigned integer and emit a warning.
https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html
Example of Python functions that can benefit of this attribute:
* PyMem_RawMalloc(), PyMem_RawCalloc(), PyMem_RawRealloc()
* PyMem_Malloc(), PyMem_Calloc(), PyMem_Realloc()
* PyObject_Malloc(), PyObject_Calloc(), PyObject_Realloc() |
|
Date |
User |
Action |
Args |
2017-02-28 08:54:10 | vstinner | set | recipients:
+ vstinner |
2017-02-28 08:54:10 | vstinner | set | messageid: <1488272050.61.0.409487721584.issue29674@psf.upfronthosting.co.za> |
2017-02-28 08:54:10 | vstinner | link | issue29674 messages |
2017-02-28 08:54:10 | vstinner | create | |
|