Ticket #238 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 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 (3.5 kB) - added by MarcusMeissner 3 years ago.
/suse/meissner/0001-attribute-alloc_size-for-newer-gccs.patch

Change History

Changed 3 years ago by MarcusMeissner

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

Changed 3 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.