]> git.meshlink.io Git - catta/commit
attribute alloc_size for newer gccs.
authorMarcus Meissner <meissner@grape.suse.de>
Mon, 1 Sep 2008 08:27:25 +0000 (10:27 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 12 Dec 2008 19:16:27 +0000 (20:16 +0100)
commitf3f1b8bb63a574853e2fbcafe47b121da972ca23
tree5d2a8a35cfcfd82a50b8bb4e0c6a14c6a7ca420e
parentabc3a9efd1124d74155c6a70798d10710b20786d
attribute alloc_size for newer gccs.

This patch marks up the allocator functions with the
GCC 4.3 (and later) attribute alloc_size.

This will pass the size of allocations of known size
(at compile time) to the overflow checking memcpy/strcpy
and related functions.

Ciao, Marcus

Signed-off-by: Lennart Poettering <lennart@poettering.net>
avahi-common/gccmacro.h
avahi-common/malloc.h