Ticket #238 (closed enhancement: fixed)

Opened 5 years ago

Last modified 4 years ago

gcc attribute alloc_size for allocator functions

Reported by: MarcusMeissner Owned by: lennart
Milestone: Component: avahi-common
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 Download (3.5 KB) - added by MarcusMeissner 5 years ago.
/suse/meissner/0001-attribute-alloc_size-for-newer-gccs.patch

Change History

Changed 5 years ago by MarcusMeissner

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

Changed 4 years ago by lennart

  • status changed from new to closed
  • resolution set to fixed

Thanks, fixed by rf3f1b8bb63a574853e2fbcafe47b121da972ca23.

Note: See TracTickets for help on using tickets.