This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/44384] builtin_object_size_ treatment of multidimensional arrays is unexpected
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 28 Mar 2011 14:05:42 +0000
- Subject: [Bug c/44384] builtin_object_size_ treatment of multidimensional arrays is unexpected
- Auto-submitted: auto-generated
- References: <bug-44384-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44384
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-03-28 14:05:34 UTC ---
__builtin_object_size is a builtin for -D_FORTIFY_SOURCE checking, it is not a
generic object size computation function, and for strcpy IMHO we don't want to
treat each dimension as a field separator.