Task #91737 - added.err
back to task #91737download
Error: GCC_ANALYZER_WARNING (CWE-688):
polkit-127/src/polkitagent/polkitagenthelper-pam.c:256:7: warning[-Wanalyzer-null-argument]: use of NULL ‘user_to_auth’ where non-null expected
polkit-127/src/polkitagent/polkitagenthelper-pam.c:105:6: branch_false: following ‘false’ branch...
polkit-127/src/polkitagent/polkitagenthelper-pam.c:109:3: branch_false: ...to here
polkit-127/src/polkitagent/polkitagenthelper-pam.c:117:6: branch_false: following ‘false’ branch...
polkit-127/src/polkitagent/polkitagenthelper-pam.c:130:3: branch_false: ...to here
polkit-127/src/polkitagent/polkitagenthelper-pam.c:133:6: branch_false: following ‘false’ branch...
polkit-127/src/polkitagent/polkitagenthelper-pam.c:141:7: branch_false: ...to here
polkit-127/src/polkitagent/polkitagenthelper-pam.c:141:6: branch_false: following ‘false’ branch...
polkit-127/src/polkitagent/polkitagenthelper-pam.c:182:12: branch_false: ...to here
polkit-127/src/polkitagent/polkitagenthelper-pam.c:183:6: branch_false: following ‘false’ branch...
polkit-127/src/polkitagent/polkitagenthelper-pam.c:186:7: branch_false: ...to here
polkit-127/src/polkitagent/polkitagenthelper-pam.c:209:6: branch_false: following ‘false’ branch...
polkit-127/src/polkitagent/polkitagenthelper-pam.c:216:8: branch_false: ...to here
polkit-127/src/polkitagent/polkitagenthelper-pam.c:217:6: branch_false: following ‘false’ branch...
polkit-127/src/polkitagent/polkitagenthelper-pam.c:224:8: branch_false: ...to here
polkit-127/src/polkitagent/polkitagenthelper-pam.c:225:6: branch_false: following ‘false’ branch...
polkit-127/src/polkitagent/polkitagenthelper-pam.c:237:8: branch_false: ...to here
polkit-127/src/polkitagent/polkitagenthelper-pam.c:238:6: branch_false: following ‘false’ branch...
polkit-127/src/polkitagent/polkitagenthelper-pam.c:247:8: branch_false: ...to here
polkit-127/src/polkitagent/polkitagenthelper-pam.c:248:6: branch_false: following ‘false’ branch...
polkit-127/src/polkitagent/polkitagenthelper-pam.c:256:7: branch_false: ...to here
polkit-127/src/polkitagent/polkitagenthelper-pam.c:256:7: danger: argument 2 (‘user_to_auth’) NULL where non-null expected
# 254| }
# 255|
# 256|-> if (strcmp (authed_user, user_to_auth) != 0)
# 257| {
# 258| fprintf (stderr, "polkit-agent-helper-1: Tried to auth user '%s' but we got auth for user '%s' instead",