Build a single file with -Wuse-after-free=1 if the compiler supports it to avoid an over-careful check by the compiler.
This bug was referenced in samba master: 89e0c732b1c45f6498ed0f39add77c2a52afddce 971441ca5244b0e56f6b664d785fcefa3867ede1
Created attachment 17347 [details] Patch for v4-16-test
Comment on attachment 17347 [details] Patch for v4-16-test This is wrong! We need krb5_crypto_cflags.append('-Wno-error=use-after-free') and it's also needed for other files not just crypto.c (at least) also dcache.c
(In reply to Stefan Metzmacher from comment #3) Sorry, I guess I was wrong because I tested it on top of 4.16.0rc1 I guess the key is that -Wuse-after-free=1 will overwrite a default of -Wuse-after-free=2, is that correct?
Comment on attachment 17347 [details] Patch for v4-16-test Looks good
(In reply to Stefan Metzmacher from comment #4) > I guess the key is that -Wuse-after-free=1 will overwrite a default > of -Wuse-after-free=2, is that correct? Yes, the default is -Wuse-after-free=2 and the patch overrides the default just for one file.
Pushed to autobuild-v4-16-test.
This bug was referenced in samba v4-16-test: 3537ef5acbb887495861bb1668876afd69999e74 17451c5a17a8867e9722666a28f14f52810d505a
Closing out bug report. Thanks!
This bug was referenced in samba v4-16-stable (Release samba-4.16.3): 3537ef5acbb887495861bb1668876afd69999e74 17451c5a17a8867e9722666a28f14f52810d505a