Ticket #238 (closed enhancement: fixed)
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
Change History
Note: See
TracTickets for help on using
tickets.

