From afa00abb2b68205bee539d7947130d6b1b1ec6e9 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 1 Apr 2021 19:39:14 +0200 Subject: Hardened entire system By using the nonnull attribute and replace buffer-overflow-prone functions like strcpy, strcat and sprintf by strlcpy, strlcat and snprintf. --- libs/libnet/dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/libnet') diff --git a/libs/libnet/dns.c b/libs/libnet/dns.c index f20f33a..e179bd6 100644 --- a/libs/libnet/dns.c +++ b/libs/libnet/dns.c @@ -20,7 +20,7 @@ struct dns_packet { u16 authorities; u16 additional; u8 data[]; -} __attribute__((packed)); +} PACKED; static u32 part_count(const char *name) { -- cgit v1.2.3