diff options
author | Joseph Sutton <josephsutton@catalyst.net.nz> | 2022-10-12 13:56:08 +1300 |
---|---|---|
committer | Jule Anger <janger@samba.org> | 2022-10-25 10:31:33 +0000 |
commit | cd48f2da59f48caa20e7ac652c958182671e804b (patch) | |
tree | a1c8fb99f7fddc328dbbfd1adfea882debe9ed5b /third_party/heimdal | |
parent | ce7c418ca4f8f82e61a9a02a6589ab1c4df51d63 (diff) | |
download | samba-cd48f2da59f48caa20e7ac652c958182671e804b.tar.gz |
CVE-2022-3437 third_party/heimdal: Remove __func__ compatibility workaround
As described by the C standard, __func__ is a variable, not a macro.
Hence this #ifndef check does not work as intended, and only serves to
unconditionally disable __func__. A nonoperating __func__ prevents
cmocka operating correctly, so remove this definition.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15134
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'third_party/heimdal')
-rw-r--r-- | third_party/heimdal/lib/krb5/krb5_locl.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/third_party/heimdal/lib/krb5/krb5_locl.h b/third_party/heimdal/lib/krb5/krb5_locl.h index 7045c5bb601..91751c1baba 100644 --- a/third_party/heimdal/lib/krb5/krb5_locl.h +++ b/third_party/heimdal/lib/krb5/krb5_locl.h @@ -204,10 +204,6 @@ extern const char _krb5_wellknown_lkdc[]; #define ALLOC(X, N) (X) = calloc((N), sizeof(*(X))) #define ALLOC_SEQ(X, N) do { (X)->len = (N); ALLOC((X)->val, (N)); } while(0) -#ifndef __func__ -#define __func__ "unknown-function" -#endif - #define krb5_einval(context, argnum) _krb5_einval((context), __func__, (argnum)) #ifndef PATH_SEP |