Ticket #238 (new enhancement)

Opened 3 months ago

gcc attribute alloc_size for allocator functions

Reported by: MarcusMeissner Assigned to: lennart
Priority: major Milestone:
Component: avahi-common Version:
Keywords: Cc:

Description

Hi,

this patch adds attribute alloc_size markup to the allocator functions in avahi-common.

This allows gcc overflow checking if the allocationsize is known at compile time for functions like strcpy and memcpy.

Ciao, Marcus

Attachments

0001-attribute-alloc_size-for-newer-gccs.patch (3.5 kB) - added by MarcusMeissner on 09/01/08 10:30:17.
/suse/meissner/0001-attribute-alloc_size-for-newer-gccs.patch

Change History

09/01/08 10:30:17 changed by MarcusMeissner

  • attachment 0001-attribute-alloc_size-for-newer-gccs.patch added.

/suse/meissner/0001-attribute-alloc_size-for-newer-gccs.patch