Skip to content

Commit

Permalink
ldns: fix building with GCC 12
Browse files Browse the repository at this point in the history
parse.c performs pointer arithmetic with a pointer to a memory area
that's been reallocated in the meantime. It is very inelegant but looks
harmless otherwise.

This change sets the -Wno-use-after-free flag with GCC for this file.
  • Loading branch information
khorben committed May 23, 2023
1 parent e252c10 commit 4177c84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/libldns/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ LIBADD= ssl crypto

WARNS ?= 3

CWARNFLAGS.parse.c= ${NO_WUSE_AFTER_FREE}
CWARNFLAGS.sha2.c= ${NO_WARRAY_PARAMETER}

.include <bsd.lib.mk>

0 comments on commit 4177c84

Please sign in to comment.