/*********************************************************
- * Copyright (C) 1998-2023 VMware, Inc. All rights reserved.
+ * Copyright (c) 1998-2024 Broadcom. All rights reserved.
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
ASSERT(dst != fileName);
Posix_Free(dst);
+ /* coverity[use_after_free] */
dst = src;
}
}
/*********************************************************
- * Copyright (C) 2006-2019 VMware, Inc. All rights reserved.
+ * Copyright (c) 2006-2019,2024 Broadcom. All rights reserved.
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* properly handled.
*/
+ /* coverity[string_null] */
p = strchr(buffer, '(');
if ((p == NULL) || (p == buffer) || (*(p - 1) != ' ')) {
/*********************************************************
- * Copyright (c) 2020-2021,2023 VMware, Inc. All rights reserved.
+ * Copyright (c) 2020-2021,2023-2024 Broadcom. All rights reserved.
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* - GdpEnum name
* - error-id string id
* - Default error message string
+ *
+ * GDP_ERR_MAX item MUST BE LAST
*/
#define GDP_ERR_LIST \
GDP_ERR_ITEM(GDP_ERROR_SUCCESS = 0, \
"Operation timed out") \
GDP_ERR_ITEM(GDP_ERROR_NO_SUBSCRIBERS, \
"no-subscribers", \
- "No subscribers for data")
+ "No subscribers for data") \
+ GDP_ERR_ITEM(GDP_ERR_MAX, \
+ "last-error", \
+ "last-error")
/*
* GdpError codes enum.
#define GDP_ERR_ITEM(a, b, c) a,
typedef enum GdpError {
GDP_ERR_LIST
- GDP_ERR_MAX
} GdpError;
#undef GDP_ERR_ITEM
/*********************************************************
- * Copyright (C) 2011-2019 VMware, Inc. All rights reserved.
+ * Copyright (c) 2011-2019,2024 Broadcom. All rights reserved.
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* If the local DictLL_UnmarshalLine() returns NULL, name and value
* will remain NULL pointers. No malloc'ed memory to free here.
*/
+ /* coverity[leaked_storage] */
break;
}
/*********************************************************
- * Copyright (c) 2016-2023 VMware, Inc. All rights reserved.
+ * Copyright (c) 2016-2024 Broadcom. All rights reserved.
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
/*
* Add cert to the keymanager.
*/
+ /* coverity[string_null] */
ret = xmlSecCryptoAppKeysMngrCertLoadMemory(mgr,
pemCert,
(xmlSecSize) strlen(pemCert),
if (err != VGAUTH_E_OK) {
VMXLog_Log(VMXLOG_LEVEL_WARNING,
"Unrelated certs found in SAML token, failing\n");
+ FreeCertArray(num, certChain);
return VGAUTH_E_AUTHENTICATION_DENIED;
}
}