[Bug middle-end/78245] missing -Wformat-length on an overflow of a dynamically allocated buffer
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Nov 7 23:35:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78245
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2016-11-07
Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
This is due to a limitation of the compute_builtin_object_size function in
tree-object-size.c. The function only computes the sizes of dynamically
allocated objects that have been explicitly passed to the __builtin_object_size
intrinsic.
Let me look into removing the limitation and having the function handle
dynamically allocated objects even if they're not passed to the built-in.
More information about the Gcc-bugs
mailing list