[Side-Effect] Issues in processing function name with macros (openssl)
In openssl crypto/cmp/cmp_msg.c:1255
OSSL_CMP_MSG *ossl_cmp_pollRep_new(OSSL_CMP_CTX *ctx, int crid,
int64_t poll_after)
{
OSSL_CMP_MSG *msg;
OSSL_CMP_POLLREP *prep;
if (!ossl_assert(ctx != NULL))
return NULL;
if ((msg = ossl_cmp_msg_create(ctx, OSSL_CMP_PKIBODY_POLLREP)) == NULL)
goto err;
if ((prep = OSSL_CMP_POLLREP_new()) == NULL)
goto err;
if (!sk_OSSL_CMP_POLLREP_push(msg->body->value.pollRep, prep))
goto err;
if (!ASN1_INTEGER_set(prep->certReqId, crid))
goto err;
if (!ASN1_INTEGER_set_int64(prep->checkAfter, poll_after))
goto err;
if (!ossl_cmp_msg_protect(ctx, msg))
goto err;
return msg;
err:
ERR_raise(ERR_LIB_CMP, CMP_R_ERROR_CREATING_POLLREP);
OSSL_CMP_MSG_free(msg);
return NULL;
}
OSSL_CMP_MSG *ossl_cmp_pollRep_new(OSSL_CMP_CTX *ctx, int crid,
int64_t poll_after)
{
OSSL_CMP_MSG *msg;
OSSL_CMP_POLLREP *prep;
{
int temp_1 = !ossl_assert_int((ctx != ((void *)0)) != 0, "Assertion failed: ctx != NULL", "/magma/targets/openssl/repo/crypto/cmp/cmp_msg.c", 1002);
if (temp_1) {
return ((void *)0);
}
}
{
if ((msg = temp_2) == ((void *)0)) {
goto err;
}
}
{
if ((prep = temp_3) == ((void *)0)) {
goto err;
}
}
{
int temp_2 = !sk_OSSL_CMP_POLLREP_push(msg->body->value.pollRep, prep);
if (temp_2) {
goto err;
}
}
{
int temp_3 = !ASN1_INTEGER_set(prep->certReqId, crid);
if (temp_3) {
goto err;
}
}
{
int temp_4 = !ASN1_INTEGER_set_int64(prep->checkAfter, poll_after);
if (temp_4) {
goto err;
}
}
{
int temp_5 = !ossl_cmp_msg_protect(ctx, msg);
if (temp_5) {
goto err;
}
}
return msg;
err:
(ERR_new() , ERR_set_debug("/magma/targets/openssl/repo/crypto/cmp/cmp_msg.c", 1028, __func__) , ERR_set_error)((58), (123), ((void *)0));
OSSL_CMP_MSG_free(msg);
return ((void *)0);
}