https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87736
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=91582
--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
The solution I'm working on for pr91582 adds tracking of dynamically allocated
objects to the strlen pass (including alloca, VLAs, and user-defined allocation
functions declared with attribute alloc_size). A natural extension of the
project is to detect accesses to deallocated objects. A new function attribute
such as "free" to parallel attributes malloc and alloca_size will be required
to detect such deallocation by user-defined functions (the attribute will need
to apply to specific function arguments to make it possible to use it with
functions taking two more pointers). I expect to submit my patch for pr91582
in time for GCC 10 but the new attribute will most likely have to wait until
GCC 11.