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 22, 2023
1 parent e3cbf21 commit d5f64de
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 @@ -24,5 +24,6 @@ LIBADD= ssl crypto
WARNS ?= 3

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

.include <bsd.lib.mk>

0 comments on commit d5f64de

Please sign in to comment.