Task #86594 - added.err

back to task #86594
download
Error: GCC_ANALYZER_WARNING (CWE-457):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c: scope_hint: In function 'pc_list_add_password'
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:349:32: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*<unknown>'
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro 'SAFEALIGN_COPY_UINT32_CHECK'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
sssd-2.12.0/src/sss_client/sss_cli.h:33: included_from: Included from here.
/usr/include/string.h:202:14: note: argument 1 of 'strdup' must be a pointer to a null-terminated string
#  347|   
#  348|       pc->type = PC_TYPE_PASSWORD;
#  349|->     pc->data.password.prompt = strdup(prompt != NULL ? prompt
#  350|                                                        : DEFAULT_PASSWORD_PROMPT);
#  351|       if (pc->data.password.prompt == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-457):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c: scope_hint: In function ‘pc_list_add_password’
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:349:32: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro ‘SAFEALIGN_COPY_UINT32_CHECK’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/sss_client/sss_cli.h:33: included_from: Included from here.
/usr/include/string.h:202:14: note: argument 1 of ‘strdup’ must be a pointer to a null-terminated string
#  347|   
#  348|       pc->type = PC_TYPE_PASSWORD;
#  349|->     pc->data.password.prompt = strdup(prompt != NULL ? prompt
#  350|                                                        : DEFAULT_PASSWORD_PROMPT);
#  351|       if (pc->data.password.prompt == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-457):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c: scope_hint: In function 'pc_list_add_2fa'
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:388:34: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*<unknown>'
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro 'SAFEALIGN_COPY_UINT32_CHECK'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
/usr/include/string.h:202:14: note: argument 1 of 'strdup' must be a pointer to a null-terminated string
#  386|   
#  387|       pc->type = PC_TYPE_2FA;
#  388|->     pc->data.two_fa.prompt_1st = strdup(prompt_1st != NULL ? prompt_1st
#  389|                                                      : DEFAULT_2FA_PROMPT_1ST);
#  390|       if (pc->data.two_fa.prompt_1st == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-457):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c: scope_hint: In function ‘pc_list_add_2fa’
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:388:34: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro ‘SAFEALIGN_COPY_UINT32_CHECK’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
/usr/include/string.h:202:14: note: argument 1 of ‘strdup’ must be a pointer to a null-terminated string
#  386|   
#  387|       pc->type = PC_TYPE_2FA;
#  388|->     pc->data.two_fa.prompt_1st = strdup(prompt_1st != NULL ? prompt_1st
#  389|                                                      : DEFAULT_2FA_PROMPT_1ST);
#  390|       if (pc->data.two_fa.prompt_1st == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-457):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c: scope_hint: In function 'pc_list_add_2fa_single'
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:434:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*<unknown>'
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro 'SAFEALIGN_COPY_UINT32_CHECK'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
/usr/include/string.h:202:14: note: argument 1 of 'strdup' must be a pointer to a null-terminated string
#  432|   
#  433|       pc->type = PC_TYPE_2FA_SINGLE;
#  434|->     pc->data.two_fa_single.prompt = strdup(prompt != NULL ? prompt
#  435|                                                      : DEFAULT_2FA_SINGLE_PROMPT);
#  436|       if (pc->data.two_fa_single.prompt == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-457):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c: scope_hint: In function ‘pc_list_add_2fa_single’
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:434:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro ‘SAFEALIGN_COPY_UINT32_CHECK’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
/usr/include/string.h:202:14: note: argument 1 of ‘strdup’ must be a pointer to a null-terminated string
#  432|   
#  433|       pc->type = PC_TYPE_2FA_SINGLE;
#  434|->     pc->data.two_fa_single.prompt = strdup(prompt != NULL ? prompt
#  435|                                                      : DEFAULT_2FA_SINGLE_PROMPT);
#  436|       if (pc->data.two_fa_single.prompt == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-457):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c: scope_hint: In function 'pc_list_add_passkey'
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:474:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*<unknown>'
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro 'SAFEALIGN_COPY_UINT32_CHECK'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
/usr/include/string.h:202:14: note: argument 1 of 'strdup' must be a pointer to a null-terminated string
#  472|       pc->type = PC_TYPE_PASSKEY;
#  473|   
#  474|->     pc->data.passkey.prompt_inter = strdup(prompt_inter != NULL ? prompt_inter
#  475|                                              : "");
#  476|       if (pc->data.passkey.prompt_inter == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-457):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c: scope_hint: In function ‘pc_list_add_passkey’
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:474:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro ‘SAFEALIGN_COPY_UINT32_CHECK’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
/usr/include/string.h:202:14: note: argument 1 of ‘strdup’ must be a pointer to a null-terminated string
#  472|       pc->type = PC_TYPE_PASSKEY;
#  473|   
#  474|->     pc->data.passkey.prompt_inter = strdup(prompt_inter != NULL ? prompt_inter
#  475|                                              : "");
#  476|       if (pc->data.passkey.prompt_inter == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-457):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c: scope_hint: In function ‘pc_list_add_eidp’
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:521:33: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro ‘SAFEALIGN_COPY_UINT32_CHECK’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
/usr/include/string.h:202:14: note: argument 1 of ‘strdup’ must be a pointer to a null-terminated string
#  519|       pc->type = PC_TYPE_EIDP;
#  520|   
#  521|->     pc->data.eidp.prompt_init = strdup(prompt_init != NULL ? prompt_init
#  522|                                              : "");
#  523|       if (pc->data.eidp.prompt_init == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-457):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c: scope_hint: In function ‘pc_list_add_smartcard’
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:568:38: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro ‘SAFEALIGN_COPY_UINT32_CHECK’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
/usr/include/string.h:202:14: note: argument 1 of ‘strdup’ must be a pointer to a null-terminated string
#  566|       pc->type = PC_TYPE_SMARTCARD;
#  567|   
#  568|->     pc->data.smartcard.prompt_init = strdup(prompt_init != NULL ? prompt_init
#  569|                                               : "");
#  570|       if (pc->data.smartcard.prompt_init == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-457):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c: scope_hint: In function 'pc_list_add_oauth2'
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:615:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*<unknown>'
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro 'SAFEALIGN_COPY_UINT32_CHECK'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
/usr/include/string.h:202:14: note: argument 1 of 'strdup' must be a pointer to a null-terminated string
#  613|       pc->type = PC_TYPE_OAUTH2;
#  614|   
#  615|->     pc->data.oauth2.prompt_inter = strdup(prompt_inter != NULL ? prompt_inter
#  616|                                             : "");
#  617|       if (pc->data.oauth2.prompt_inter == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-457):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c: scope_hint: In function ‘pc_list_add_oauth2’
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:615:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro ‘SAFEALIGN_COPY_UINT32_CHECK’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
/usr/include/string.h:202:14: note: argument 1 of ‘strdup’ must be a pointer to a null-terminated string
#  613|       pc->type = PC_TYPE_OAUTH2;
#  614|   
#  615|->     pc->data.oauth2.prompt_inter = strdup(prompt_inter != NULL ? prompt_inter
#  616|                                             : "");
#  617|       if (pc->data.oauth2.prompt_inter == NULL) {

Error: COMPILER_WARNING (CWE-563):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c: scope_hint: In function 'pc_list_from_response'
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:802:14: warning[-Wunused-variable]: unused variable 'l'
#  802 |     uint32_t l;
#      |              ^
#  800|       uint32_t count;
#  801|       uint32_t type;
#  802|->     uint32_t l;
#  803|       size_t rp;
#  804|       size_t c;

Error: COMPILER_WARNING (CWE-563):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c: scope_hint: In function ‘pc_list_from_response’
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:802:14: warning[-Wunused-variable]: unused variable ‘l’
#  802 |     uint32_t l;
#      |              ^
#  800|       uint32_t count;
#  801|       uint32_t type;
#  802|->     uint32_t l;
#  803|       size_t rp;
#  804|       size_t c;

Error: GCC_ANALYZER_WARNING (CWE-415):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c: scope_hint: In function 'pc_list_from_response'
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:833:13: warning[-Wanalyzer-double-free]: double-'free' of 'str'
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro 'SAFEALIGN_COPY_UINT32_CHECK'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
#  831|   
#  832|               ret = pc_list_add_password(&pl, str);
#  833|->             free(str);
#  834|               if (ret != EOK) {
#  835|                   goto done;

Error: GCC_ANALYZER_WARNING (CWE-415):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c: scope_hint: In function ‘pc_list_from_response’
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:833:13: warning[-Wanalyzer-double-free]: double-‘free’ of ‘str’
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro ‘SAFEALIGN_COPY_UINT32_CHECK’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
#  831|   
#  832|               ret = pc_list_add_password(&pl, str);
#  833|->             free(str);
#  834|               if (ret != EOK) {
#  835|                   goto done;

Error: GCC_ANALYZER_WARNING (CWE-415):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:846:17: warning[-Wanalyzer-double-free]: double-'free' of 'str'
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro 'SAFEALIGN_COPY_UINT32_CHECK'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
#  844|               ret = pc_copy_string(size, buf, &rp, &str2);
#  845|               if (ret != 0) {
#  846|->                 free(str);
#  847|                   goto done;
#  848|               }

Error: GCC_ANALYZER_WARNING (CWE-415):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:846:17: warning[-Wanalyzer-double-free]: double-‘free’ of ‘str’
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro ‘SAFEALIGN_COPY_UINT32_CHECK’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
#  844|               ret = pc_copy_string(size, buf, &rp, &str2);
#  845|               if (ret != 0) {
#  846|->                 free(str);
#  847|                   goto done;
#  848|               }

Error: GCC_ANALYZER_WARNING (CWE-457):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:850:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'str2'
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro 'SAFEALIGN_COPY_UINT32_CHECK'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
#  848|               }
#  849|   
#  850|->             ret = pc_list_add_2fa(&pl, str, str2);
#  851|               free(str);
#  852|               free(str2);

Error: GCC_ANALYZER_WARNING (CWE-457):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:850:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘str2’
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro ‘SAFEALIGN_COPY_UINT32_CHECK’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
#  848|               }
#  849|   
#  850|->             ret = pc_list_add_2fa(&pl, str, str2);
#  851|               free(str);
#  852|               free(str2);

Error: GCC_ANALYZER_WARNING (CWE-415):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:865:17: warning[-Wanalyzer-double-free]: double-'free' of 'str'
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro 'SAFEALIGN_COPY_UINT32_CHECK'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
#  863|               ret = pc_copy_string(size, buf, &rp, &str2);
#  864|               if (ret != 0) {
#  865|->                 free(str);
#  866|                   goto done;
#  867|               }

Error: GCC_ANALYZER_WARNING (CWE-415):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:865:17: warning[-Wanalyzer-double-free]: double-‘free’ of ‘str’
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro ‘SAFEALIGN_COPY_UINT32_CHECK’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
#  863|               ret = pc_copy_string(size, buf, &rp, &str2);
#  864|               if (ret != 0) {
#  865|->                 free(str);
#  866|                   goto done;
#  867|               }

Error: GCC_ANALYZER_WARNING (CWE-457):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:869:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'str2'
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro 'SAFEALIGN_COPY_UINT32_CHECK'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
#  867|               }
#  868|   
#  869|->             ret = pc_list_add_passkey(&pl, str, str2);
#  870|               free(str);
#  871|               free(str2);

Error: GCC_ANALYZER_WARNING (CWE-457):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:869:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘str2’
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro ‘SAFEALIGN_COPY_UINT32_CHECK’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
#  867|               }
#  868|   
#  869|->             ret = pc_list_add_passkey(&pl, str, str2);
#  870|               free(str);
#  871|               free(str2);

Error: GCC_ANALYZER_WARNING (CWE-415):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:883:13: warning[-Wanalyzer-double-free]: double-'free' of 'str'
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro 'SAFEALIGN_COPY_UINT32_CHECK'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro 'SAFEALIGN_COPY_UINT32'
#  881|   
#  882|               ret = pc_list_add_oauth2(&pl, str);
#  883|->             free(str);
#  884|               if (ret != EOK) {
#  885|                   goto done;

Error: GCC_ANALYZER_WARNING (CWE-415):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:883:13: warning[-Wanalyzer-double-free]: double-‘free’ of ‘str’
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro ‘SAFEALIGN_COPY_UINT32_CHECK’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
#  881|   
#  882|               ret = pc_list_add_oauth2(&pl, str);
#  883|->             free(str);
#  884|               if (ret != EOK) {
#  885|                   goto done;

Error: GCC_ANALYZER_WARNING (CWE-415):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:895:13: warning[-Wanalyzer-double-free]: double-‘free’ of ‘str’
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro ‘SAFEALIGN_COPY_UINT32_CHECK’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
#  893|   
#  894|               ret = pc_list_add_2fa_single(&pl, str);
#  895|->             free(str);
#  896|               if (ret != EOK) {
#  897|                   goto done;

Error: GCC_ANALYZER_WARNING (CWE-415):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:908:17: warning[-Wanalyzer-double-free]: double-‘free’ of ‘str’
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro ‘SAFEALIGN_COPY_UINT32_CHECK’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
#  906|               ret = pc_copy_string(size, buf, &rp, &str2);
#  907|               if (ret != 0) {
#  908|->                 free(str);
#  909|                   goto done;
#  910|               }

Error: GCC_ANALYZER_WARNING (CWE-457):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:912:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘str2’
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro ‘SAFEALIGN_COPY_UINT32_CHECK’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
#  910|               }
#  911|   
#  912|->             ret = pc_list_add_smartcard(&pl, str, str2);
#  913|               free(str);
#  914|               free(str2);

Error: GCC_ANALYZER_WARNING (CWE-415):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:927:17: warning[-Wanalyzer-double-free]: double-‘free’ of ‘str’
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro ‘SAFEALIGN_COPY_UINT32_CHECK’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
#  925|               ret = pc_copy_string(size, buf, &rp, &str2);
#  926|               if (ret != 0) {
#  927|->                 free(str);
#  928|                   goto done;
#  929|               }

Error: GCC_ANALYZER_WARNING (CWE-457):
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:931:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘str2’
sssd-2.12.0/src/sss_client/pam_sss_prompt_config.c:814:5: note: in expansion of macro ‘SAFEALIGN_COPY_UINT32_CHECK’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
sssd-2.12.0/src/shared/safealign.h:78:28: note: in definition of macro ‘SAFEALIGN_COPY_UINT32’
#  929|               }
#  930|   
#  931|->             ret = pc_list_add_eidp(&pl, str, str2);
#  932|               free(str);
#  933|               free(str2);