]> Savannah Git Hosting - gnulib.git/commit
xalloc: don't potentially generate invalid code for xmemdup calls
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 21 May 2014 01:14:48 +0000 (18:14 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 21 May 2014 01:15:10 +0000 (18:15 -0700)
commit7540f65fd4e4906ee052425c0504ae6f07e535d6
treeb17c22ee7a6d118041412b98641ec28bb3f7cac5
parenteec20b4e10a8f59a1880c2e05c2ed978ed3c5d3b
xalloc: don't potentially generate invalid code for xmemdup calls

* lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
this function can initialize the newly-allocated storage with new
pointers, which means this function is not malloc-like.  See:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
ChangeLog
lib/xalloc.h