whois-5.6.5-1.fc44
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
work/mkpasswd.c:180:18: warning[-Wanalyzer-malloc-leak]: leak of ‘do_nofail(strdup(optarg), "mkpasswd.c", 196)’
work/mkpasswd.c:180:12: branch_true: following ‘true’ branch (when ‘ch > 0’)...
work/mkpasswd.c:182:9: branch_true: ...to here
work/mkpasswd.c:188:16: branch_false: following ‘false’ branch...
work/mkpasswd.c:193:16: branch_true: following ‘true’ branch...
work/mkpasswd.c:194:24: branch_true: ...to here
work/mkpasswd.c:193:17: branch_true: following ‘true’ branch...
work/mkpasswd.c:195:50: branch_true: ...to here
work/mkpasswd.c:193:17: branch_true: following ‘true’ branch...
work/mkpasswd.c:196:31: branch_true: ...to here
work/mkpasswd.c:180:12: branch_true: following ‘true’ branch (when ‘ch > 0’)...
work/mkpasswd.c:182:9: branch_true: ...to here
work/mkpasswd.c:188:16: branch_false: following ‘false’ branch...
work/mkpasswd.c:193:16: branch_true: following ‘true’ branch...
work/mkpasswd.c:194:24: branch_true: ...to here
work/mkpasswd.c:193:17: branch_true: following ‘true’ branch...
work/mkpasswd.c:195:50: branch_true: ...to here
work/mkpasswd.c:193:17: branch_true: following ‘true’ branch...
work/mkpasswd.c:196:31: branch_true: ...to here
work/mkpasswd.c:196:31: throw: if ‘do_nofail’ throws an exception...
work/mkpasswd.c:180:18: danger: ‘do_nofail(strdup(optarg), "mkpasswd.c", 196)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
work/mkpasswd.c:196:31: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(optarg)’
work/mkpasswd.c:180:12: branch_true: following ‘true’ branch (when ‘ch > 0’)...
work/mkpasswd.c:182:9: branch_true: ...to here
work/mkpasswd.c:188:16: branch_false: following ‘false’ branch...
work/mkpasswd.c:193:16: branch_true: following ‘true’ branch...
work/mkpasswd.c:194:24: branch_true: ...to here
work/mkpasswd.c:193:17: branch_true: following ‘true’ branch...
work/mkpasswd.c:195:50: branch_true: ...to here
work/mkpasswd.c:193:17: branch_true: following ‘true’ branch...
work/mkpasswd.c:196:31: branch_true: ...to here
work/mkpasswd.c:196:31: acquire_memory: allocated here
work/mkpasswd.c:196:31: danger: ‘strdup(optarg)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
work/mkpasswd.c:293:16: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(salt_arg)’
work/mkpasswd.c:180:12: branch_true: following ‘true’ branch (when ‘ch > 0’)...
work/mkpasswd.c:182:9: branch_true: ...to here
work/mkpasswd.c:220:20: branch_false: following ‘false’ branch...
work/mkpasswd.c:180:12: branch_false: following ‘false’ branch (when ‘ch <= 0’)...
work/mkpasswd.c:256:10: branch_false: ...to here
work/mkpasswd.c:259:8: branch_true: following ‘true’ branch...
work/mkpasswd.c:270:8: branch_true: following ‘true’ branch (when ‘salt_prefix’ is NULL)...
work/mkpasswd.c:279:9: branch_true: ...to here
work/mkpasswd.c:291:8: branch_true: following ‘true’ branch...
work/mkpasswd.c:293:16: acquire_memory: allocated here
work/mkpasswd.c:293:16: danger: ‘strdup(salt_arg)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
work/mkpasswd.c:334:16: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(strlen(salt_arg) + (strlen(salt_prefix) + strlen(&rounds_str)) + 1)’
work/mkpasswd.c:180:12: branch_true: following ‘true’ branch (when ‘ch > 0’)...
work/mkpasswd.c:182:9: branch_true: ...to here
work/mkpasswd.c:220:20: branch_false: following ‘false’ branch...
work/mkpasswd.c:180:12: branch_false: following ‘false’ branch (when ‘ch <= 0’)...
work/mkpasswd.c:256:10: branch_false: ...to here
work/mkpasswd.c:259:8: branch_true: following ‘true’ branch...
work/mkpasswd.c:270:8: branch_true: following ‘true’ branch (when ‘salt_prefix’ is NULL)...
work/mkpasswd.c:279:9: branch_true: ...to here
work/mkpasswd.c:291:9: branch_false: following ‘false’ branch...
work/mkpasswd.c:294:14: branch_false: ...to here
work/mkpasswd.c:294:13: branch_false: following ‘false’ branch...
work/mkpasswd.c:302:15: branch_false: ...to here
work/mkpasswd.c:302:15: branch_true: following ‘true’ branch...
work/mkpasswd.c:305:12: branch_false: following ‘false’ branch...
work/mkpasswd.c:305:12: branch_false: ...to here
work/mkpasswd.c:320:16: branch_false: following ‘false’ branch (when ‘c == 0’)...
work/mkpasswd.c:332:12: branch_false: ...to here
work/mkpasswd.c:332:12: branch_true: following ‘true’ branch (when ‘salt_prefix’ is NULL)...
work/mkpasswd.c:332:12: branch_true: ...to here
work/mkpasswd.c:334:16: acquire_memory: allocated here
work/mkpasswd.c:334:16: danger: ‘malloc(strlen(salt_arg) + (strlen(salt_prefix) + strlen(&rounds_str)) + 1)’ leaks here; was allocated at [(23)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
work/mkpasswd.c:383:13: warning[-Wanalyzer-malloc-leak]: leak of ‘salt’
work/mkpasswd.c:180:12: branch_true: following ‘true’ branch (when ‘ch > 0’)...
work/mkpasswd.c:182:9: branch_true: ...to here
work/mkpasswd.c:220:20: branch_false: following ‘false’ branch...
work/mkpasswd.c:180:12: branch_false: following ‘false’ branch (when ‘ch <= 0’)...
work/mkpasswd.c:256:10: branch_false: ...to here
work/mkpasswd.c:259:8: branch_true: following ‘true’ branch...
work/mkpasswd.c:270:8: branch_true: following ‘true’ branch (when ‘salt_prefix’ is NULL)...
work/mkpasswd.c:279:9: branch_true: ...to here
work/mkpasswd.c:291:8: branch_true: following ‘true’ branch...
work/mkpasswd.c:375:8: branch_false: following ‘false’ branch (when ‘password’ is NULL)...
work/mkpasswd.c:376:15: branch_false: ...to here
work/mkpasswd.c:376:15: branch_true: following ‘true’ branch (when ‘password_fd != -1’)...
work/mkpasswd.c:379:13: branch_true: ...to here
work/mkpasswd.c:379:12: branch_false: following ‘false’ branch...
work/mkpasswd.c:381:14: branch_false: ...to here
work/mkpasswd.c:382:12: branch_true: following ‘true’ branch (when ‘fp’ is NULL)...
work/mkpasswd.c:383:13: branch_true: ...to here
work/mkpasswd.c:383:13: throw: if ‘perror’ throws an exception...
work/mkpasswd.c:383:13: danger: ‘salt’ leaks here; was allocated at [(13)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
work/mkpasswd.c:389:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
work/mkpasswd.c:157:5: enter_function: entry to ‘main’
work/mkpasswd.c:180:12: branch_true: following ‘true’ branch (when ‘ch > 0’)...
work/mkpasswd.c:182:9: branch_true: ...to here
work/mkpasswd.c:220:20: branch_false: following ‘false’ branch...
work/mkpasswd.c:180:12: branch_false: following ‘false’ branch (when ‘ch <= 0’)...
work/mkpasswd.c:256:10: branch_false: ...to here
work/mkpasswd.c:259:9: branch_true: following ‘true’ branch (when ‘salt_arg’ is NULL)...
work/mkpasswd.c:260:9: branch_true: ...to here
work/mkpasswd.c:270:8: branch_true: following ‘true’ branch (when ‘salt_prefix’ is NULL)...
work/mkpasswd.c:279:9: branch_true: ...to here
work/mkpasswd.c:294:13: branch_false: following ‘false’ branch...
work/mkpasswd.c:302:15: branch_false: ...to here
work/mkpasswd.c:352:12: branch_false: following ‘false’ branch (when ‘salt’ is non-NULL)...
work/mkpasswd.c:375:8: branch_false: ...to here
work/mkpasswd.c:375:8: branch_false: following ‘false’ branch (when ‘password’ is NULL)...
work/mkpasswd.c:376:15: branch_false: ...to here
work/mkpasswd.c:376:15: branch_true: following ‘true’ branch (when ‘password_fd != -1’)...
work/mkpasswd.c:379:13: branch_true: ...to here
work/mkpasswd.c:379:12: branch_false: following ‘false’ branch...
work/mkpasswd.c:381:14: branch_false: ...to here
work/mkpasswd.c:381:14: acquire_memory: allocated here
work/mkpasswd.c:382:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
work/mkpasswd.c:387:20: branch_false: ...to here
work/mkpasswd.c:387:20: call_function: calling ‘read_line’ from ‘main’
work/mkpasswd.c:387:20: return_function: returning to ‘main’ from ‘read_line’
work/mkpasswd.c:388:12: branch_true: following ‘true’ branch...
work/mkpasswd.c:389:13: branch_true: ...to here
work/mkpasswd.c:389:13: throw: if ‘perror’ throws an exception...
work/mkpasswd.c:389:13: danger: ‘fp’ leaks here; was allocated at [(23)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
work/mkpasswd.c:416:17: warning[-Wanalyzer-malloc-leak]: leak of ‘salt’
work/mkpasswd.c:180:12: branch_true: following ‘true’ branch (when ‘ch > 0’)...
work/mkpasswd.c:182:9: branch_true: ...to here
work/mkpasswd.c:220:20: branch_false: following ‘false’ branch...
work/mkpasswd.c:180:12: branch_false: following ‘false’ branch (when ‘ch <= 0’)...
work/mkpasswd.c:256:10: branch_false: ...to here
work/mkpasswd.c:259:8: branch_true: following ‘true’ branch...
work/mkpasswd.c:270:8: branch_true: following ‘true’ branch (when ‘salt_prefix’ is NULL)...
work/mkpasswd.c:279:9: branch_true: ...to here
work/mkpasswd.c:291:8: branch_true: following ‘true’ branch...
work/mkpasswd.c:375:8: branch_true: following ‘true’ branch (when ‘password’ is non-NULL)...
work/mkpasswd.c:412:18: branch_true: ...to here
work/mkpasswd.c:416:17: throw: if ‘perror’ throws an exception...
work/mkpasswd.c:416:17: danger: ‘salt’ leaks here; was allocated at [(13)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
work/mkpasswd.c:580:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
work/mkpasswd.c:157:5: enter_function: entry to ‘main’
work/mkpasswd.c:180:12: branch_true: following ‘true’ branch (when ‘ch > 0’)...
work/mkpasswd.c:182:9: branch_true: ...to here
work/mkpasswd.c:220:20: branch_false: following ‘false’ branch...
work/mkpasswd.c:180:12: branch_false: following ‘false’ branch (when ‘ch <= 0’)...
work/mkpasswd.c:256:10: branch_false: ...to here
work/mkpasswd.c:259:9: branch_true: following ‘true’ branch (when ‘salt_arg’ is NULL)...
work/mkpasswd.c:260:9: branch_true: ...to here
work/mkpasswd.c:270:8: branch_true: following ‘true’ branch (when ‘salt_prefix’ is NULL)...
work/mkpasswd.c:279:9: branch_true: ...to here
work/mkpasswd.c:294:13: branch_false: following ‘false’ branch...
work/mkpasswd.c:302:15: branch_false: ...to here
work/mkpasswd.c:352:12: branch_false: following ‘false’ branch (when ‘salt’ is non-NULL)...
work/mkpasswd.c:375:8: branch_false: ...to here
work/mkpasswd.c:375:8: branch_false: following ‘false’ branch (when ‘password’ is NULL)...
work/mkpasswd.c:376:15: branch_false: ...to here
work/mkpasswd.c:376:15: branch_true: following ‘true’ branch (when ‘password_fd != -1’)...
work/mkpasswd.c:379:13: branch_true: ...to here
work/mkpasswd.c:379:12: branch_false: following ‘false’ branch...
work/mkpasswd.c:381:14: branch_false: ...to here
work/mkpasswd.c:381:14: acquire_memory: allocated here
work/mkpasswd.c:382:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
work/mkpasswd.c:387:20: branch_false: ...to here
work/mkpasswd.c:387:20: call_function: calling ‘read_line’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
work/mkpasswd.c:580:16: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(128)’
work/mkpasswd.c:580:16: acquire_memory: allocated here
work/mkpasswd.c:580:16: danger: ‘malloc(128)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
work/mkpasswd.c:582:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
work/mkpasswd.c:157:5: enter_function: entry to ‘main’
work/mkpasswd.c:180:12: branch_true: following ‘true’ branch (when ‘ch > 0’)...
work/mkpasswd.c:182:9: branch_true: ...to here
work/mkpasswd.c:220:20: branch_false: following ‘false’ branch...
work/mkpasswd.c:180:12: branch_false: following ‘false’ branch (when ‘ch <= 0’)...
work/mkpasswd.c:256:10: branch_false: ...to here
work/mkpasswd.c:259:9: branch_true: following ‘true’ branch (when ‘salt_arg’ is NULL)...
work/mkpasswd.c:260:9: branch_true: ...to here
work/mkpasswd.c:270:8: branch_true: following ‘true’ branch (when ‘salt_prefix’ is NULL)...
work/mkpasswd.c:279:9: branch_true: ...to here
work/mkpasswd.c:294:13: branch_false: following ‘false’ branch...
work/mkpasswd.c:302:15: branch_false: ...to here
work/mkpasswd.c:352:12: branch_false: following ‘false’ branch (when ‘salt’ is non-NULL)...
work/mkpasswd.c:375:8: branch_false: ...to here
work/mkpasswd.c:375:8: branch_false: following ‘false’ branch (when ‘password’ is NULL)...
work/mkpasswd.c:376:15: branch_false: ...to here
work/mkpasswd.c:376:15: branch_true: following ‘true’ branch (when ‘password_fd != -1’)...
work/mkpasswd.c:379:13: branch_true: ...to here
work/mkpasswd.c:379:12: branch_false: following ‘false’ branch...
work/mkpasswd.c:381:14: branch_false: ...to here
work/mkpasswd.c:381:14: acquire_memory: allocated here
work/mkpasswd.c:382:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
work/mkpasswd.c:387:20: branch_false: ...to here
work/mkpasswd.c:387:20: call_function: calling ‘read_line’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
work/mkpasswd.c:582:18: warning[-Wanalyzer-malloc-leak]: leak of ‘password’
work/mkpasswd.c:582:18: throw: if ‘fgetc’ throws an exception...
work/mkpasswd.c:582:18: danger: ‘password’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
work/mkpasswd.c:588:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
work/mkpasswd.c:157:5: enter_function: entry to ‘main’
work/mkpasswd.c:180:12: branch_true: following ‘true’ branch (when ‘ch > 0’)...
work/mkpasswd.c:182:9: branch_true: ...to here
work/mkpasswd.c:220:20: branch_false: following ‘false’ branch...
work/mkpasswd.c:180:12: branch_false: following ‘false’ branch (when ‘ch <= 0’)...
work/mkpasswd.c:256:10: branch_false: ...to here
work/mkpasswd.c:259:9: branch_true: following ‘true’ branch (when ‘salt_arg’ is NULL)...
work/mkpasswd.c:260:9: branch_true: ...to here
work/mkpasswd.c:270:8: branch_true: following ‘true’ branch (when ‘salt_prefix’ is NULL)...
work/mkpasswd.c:279:9: branch_true: ...to here
work/mkpasswd.c:294:13: branch_false: following ‘false’ branch...
work/mkpasswd.c:302:15: branch_false: ...to here
work/mkpasswd.c:352:12: branch_false: following ‘false’ branch (when ‘salt’ is non-NULL)...
work/mkpasswd.c:375:8: branch_false: ...to here
work/mkpasswd.c:375:8: branch_false: following ‘false’ branch (when ‘password’ is NULL)...
work/mkpasswd.c:376:15: branch_false: ...to here
work/mkpasswd.c:376:15: branch_true: following ‘true’ branch (when ‘password_fd != -1’)...
work/mkpasswd.c:379:13: branch_true: ...to here
work/mkpasswd.c:379:12: branch_false: following ‘false’ branch...
work/mkpasswd.c:381:14: branch_false: ...to here
work/mkpasswd.c:381:14: acquire_memory: allocated here
work/mkpasswd.c:382:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
work/mkpasswd.c:387:20: branch_false: ...to here
work/mkpasswd.c:387:20: call_function: calling ‘read_line’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
work/mkpasswd.c:588:24: warning[-Wanalyzer-malloc-leak]: leak of ‘password’
work/mkpasswd.c:586:12: branch_false: following ‘false’ branch (when ‘size != pos’)...
work/mkpasswd.c:586:12: branch_false: ...to here
work/mkpasswd.c:586:12: branch_false: following ‘false’ branch (when ‘size != pos’)...
work/mkpasswd.c:586:12: branch_false: ...to here
work/mkpasswd.c:586:12: branch_true: following ‘true’ branch (when ‘size == pos’)...
work/mkpasswd.c:587:13: branch_true: ...to here
work/mkpasswd.c:588:24: throw: if ‘do_nofail’ throws an exception...
work/mkpasswd.c:588:24: danger: ‘password’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
work/mkpasswd.c:588:24: warning[-Wanalyzer-malloc-leak]: leak of ‘realloc(password, size)’
work/mkpasswd.c:586:12: branch_false: following ‘false’ branch (when ‘size != pos’)...
work/mkpasswd.c:586:12: branch_false: ...to here
work/mkpasswd.c:586:12: branch_false: following ‘false’ branch (when ‘size != pos’)...
work/mkpasswd.c:586:12: branch_false: ...to here
work/mkpasswd.c:586:12: branch_true: following ‘true’ branch (when ‘size == pos’)...
work/mkpasswd.c:587:13: branch_true: ...to here
work/mkpasswd.c:588:24: danger: ‘realloc(password, size)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
work/simple_recode.c:74:22: warning[-Wanalyzer-malloc-leak]: leak of ‘outp’
work/simple_recode.c:68:21: acquire_memory: allocated here
work/simple_recode.c:69:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
work/simple_recode.c:71:26: branch_false: ...to here
work/simple_recode.c:74:22: throw: if ‘iconv’ throws an exception...
work/simple_recode.c:74:22: danger: ‘outp’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
work/simple_recode.c:74:22: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
work/simple_recode.c:69:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
work/simple_recode.c:71:26: branch_false: ...to here
work/simple_recode.c:77:12: branch_false: following ‘false’ branch...
work/simple_recode.c:80:17: branch_false: ...to here
work/simple_recode.c:115:20: branch_false: following ‘false’ branch (when ‘new_result’ is non-NULL)...
work/simple_recode.c:122:24: branch_false: ...to here
work/simple_recode.c:132:14: branch_true: following ‘true’ branch...
work/simple_recode.c:132:14: branch_true: ...to here
work/simple_recode.c:74:22: throw: if ‘iconv’ throws an exception...
work/simple_recode.c:74:22: danger: ‘result’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
work/utils.c:40:8: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
work/utils.c:47:8: enter_function: entry to ‘merge_args’
work/utils.c:54:8: branch_false: following ‘false’ branch (when ‘args’ is non-NULL)...
work/utils.c:57:17: branch_false: ...to here
work/utils.c:57:17: acquire_memory: allocated here
work/utils.c:57:17: call_function: inlined call to ‘do_nofail’ from ‘merge_args’
work/utils.c:58:16: branch_true: ...to here
work/utils.c:58:40: branch_true: following ‘true’ branch (when ‘arg’ is non-NULL)...
work/utils.c:59:9: branch_true: ...to here
work/utils.c:60:19: call_function: inlined call to ‘do_nofail’ from ‘merge_args’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
work/utils.c:58:16: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(args)’
work/utils.c:47:8: enter_function: entry to ‘merge_args’
work/utils.c:54:8: branch_false: following ‘false’ branch (when ‘args’ is non-NULL)...
work/utils.c:57:17: branch_false: ...to here
work/utils.c:57:17: acquire_memory: allocated here
work/utils.c:57:17: call_function: inlined call to ‘do_nofail’ from ‘merge_args’
work/utils.c:58:16: branch_true: ...to here
work/utils.c:58:16: danger: ‘strdup(args)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
work/utils.c:58:51: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
work/utils.c:47:8: enter_function: entry to ‘merge_args’
work/utils.c:54:8: branch_false: following ‘false’ branch (when ‘args’ is non-NULL)...
work/utils.c:57:17: branch_false: ...to here
work/utils.c:57:17: acquire_memory: allocated here
work/utils.c:57:17: call_function: inlined call to ‘do_nofail’ from ‘merge_args’
work/utils.c:58:16: branch_true: ...to here
work/utils.c:58:40: branch_true: following ‘true’ branch (when ‘arg’ is non-NULL)...
work/utils.c:59:9: branch_true: ...to here
work/utils.c:60:19: call_function: inlined call to ‘do_nofail’ from ‘merge_args’
work/utils.c:62:16: branch_true: ...to here
work/utils.c:58:40: branch_true: following ‘true’ branch (when ‘arg’ is non-NULL)...
work/utils.c:59:9: branch_true: ...to here
work/utils.c:60:19: call_function: inlined call to ‘do_nofail’ from ‘merge_args’
work/utils.c:62:16: branch_true: ...to here
work/utils.c:58:40: branch_true: following ‘true’ branch (when ‘arg’ is non-NULL)...
work/utils.c:59:9: branch_true: ...to here
work/utils.c:60:19: call_function: inlined call to ‘do_nofail’ from ‘merge_args’
work/utils.c:62:16: branch_true: ...to here
work/utils.c:58:51: danger: ‘<unknown>’ leaks here; was allocated at [(4)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
work/utils.c:71:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
work/utils.c:47:8: enter_function: entry to ‘merge_args’
work/utils.c:54:8: branch_false: following ‘false’ branch (when ‘args’ is non-NULL)...
work/utils.c:57:17: branch_false: ...to here
work/utils.c:57:17: acquire_memory: allocated here
work/utils.c:57:17: call_function: inlined call to ‘do_nofail’ from ‘merge_args’
work/utils.c:58:16: branch_true: ...to here
work/utils.c:58:40: branch_true: following ‘true’ branch (when ‘arg’ is non-NULL)...
work/utils.c:59:9: branch_true: ...to here
work/utils.c:60:19: call_function: inlined call to ‘do_nofail’ from ‘merge_args’
work/utils.c:62:16: branch_true: ...to here
work/utils.c:58:40: branch_false: following ‘false’ branch (when ‘arg’ is NULL)...
work/utils.c:65:8: branch_false: ...to here
work/utils.c:65:8: branch_false: following ‘false’ branch (when ‘newargs’ is non-NULL)...
work/utils.c:69:18: branch_false: ...to here
work/utils.c:70:17: branch_true: following ‘true’ branch...
work/utils.c:71:36: branch_true: ...to here
work/utils.c:70:17: branch_true: following ‘true’ branch...
work/utils.c:71:36: branch_true: ...to here
work/utils.c:71:9: danger: ‘<unknown>’ leaks here; was allocated at [(4)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
work/whois.c:324:18: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(hserver)’
work/whois.c:323:8: branch_true: following ‘true’ branch (when ‘hport’ is non-NULL)...
work/whois.c:324:18: branch_true: ...to here
work/whois.c:324:18: acquire_memory: allocated here
work/whois.c:324:18: danger: ‘strdup(hserver)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
work/whois.c:325:16: warning[-Wanalyzer-malloc-leak]: leak of ‘server’
work/whois.c:323:8: branch_true: following ‘true’ branch (when ‘hport’ is non-NULL)...
work/whois.c:324:18: branch_true: ...to here
work/whois.c:325:16: throw: if ‘do_nofail’ throws an exception...
work/whois.c:325:16: danger: ‘server’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
work/whois.c:325:16: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(hport)’
work/whois.c:323:8: branch_true: following ‘true’ branch (when ‘hport’ is non-NULL)...
work/whois.c:324:18: branch_true: ...to here
work/whois.c:325:16: acquire_memory: allocated here
work/whois.c:325:16: danger: ‘strdup(hport)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
work/whois.c:327:18: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(hserver)’
work/whois.c:323:8: branch_false: following ‘false’ branch (when ‘hport’ is NULL)...
work/whois.c:326:16: branch_false: ...to here
work/whois.c:326:15: branch_true: following ‘true’ branch...
work/whois.c:327:18: branch_true: ...to here
work/whois.c:327:18: acquire_memory: allocated here
work/whois.c:327:18: danger: ‘strdup(hserver)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
work/whois.c:334:18: warning[-Wanalyzer-malloc-leak]: leak of ‘server’
work/whois.c:323:8: branch_false: following ‘false’ branch (when ‘hport’ is NULL)...
work/whois.c:326:16: branch_false: ...to here
work/whois.c:326:15: branch_true: following ‘true’ branch...
work/whois.c:327:18: branch_true: ...to here
work/whois.c:334:18: danger: ‘server’ leaks here; was allocated at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
work/whois.c:335:26: warning[-Wanalyzer-malloc-leak]: leak of ‘port’
work/whois.c:323:8: branch_true: following ‘true’ branch (when ‘hport’ is non-NULL)...
work/whois.c:324:18: branch_true: ...to here
work/whois.c:334:16: branch_true: following ‘true’ branch...
work/whois.c:335:26: branch_true: ...to here
work/whois.c:335:26: throw: if ‘do_nofail’ throws an exception...
work/whois.c:335:26: danger: ‘port’ leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
work/whois.c:335:26: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("whois.arin.net")’
work/whois.c:323:8: branch_false: following ‘false’ branch (when ‘hport’ is NULL)...
work/whois.c:326:16: branch_false: ...to here
work/whois.c:326:15: branch_true: following ‘true’ branch...
work/whois.c:327:18: branch_true: ...to here
work/whois.c:334:16: branch_true: following ‘true’ branch...
work/whois.c:335:26: branch_true: ...to here
work/whois.c:335:26: acquire_memory: allocated here
work/whois.c:335:26: danger: ‘strdup("whois.arin.net")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def28]
work/whois.c:458:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/etc/whois.conf", "r")’
work/whois.c:440:15: acquire_resource: opened here
work/whois.c:440:8: branch_false: following ‘false’ branch...
work/whois.c:440:8: branch_false: ...to here
work/whois.c:446:12: branch_true: following ‘true’ branch...
work/whois.c:454:18: branch_true: ...to here
work/whois.c:458:16: danger: ‘fopen("/etc/whois.conf", "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
work/whois.c:458:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/etc/whois.conf", "r")’
work/whois.c:440:15: acquire_memory: allocated here
work/whois.c:440:8: branch_false: following ‘false’ branch...
work/whois.c:440:8: branch_false: ...to here
work/whois.c:446:12: branch_true: following ‘true’ branch...
work/whois.c:454:18: branch_true: ...to here
work/whois.c:458:16: danger: ‘fopen("/etc/whois.conf", "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
work/whois.c:485:20: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(server)’
work/whois.c:440:8: branch_false: following ‘false’ branch...
work/whois.c:440:8: branch_false: ...to here
work/whois.c:446:12: branch_true: following ‘true’ branch...
work/whois.c:454:18: branch_true: ...to here
work/whois.c:467:12: branch_false: following ‘false’ branch...
work/whois.c:469:13: branch_false: ...to here
work/whois.c:470:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
work/whois.c:474:13: branch_false: ...to here
work/whois.c:475:12: branch_false: following ‘false’ branch...
work/whois.c:481:13: branch_false: ...to here
work/whois.c:482:12: branch_true: following ‘true’ branch...
work/whois.c:483:13: branch_true: ...to here
work/whois.c:485:20: acquire_memory: allocated here
work/whois.c:485:20: danger: ‘strdup(server)’ leaks here; was allocated at [(16)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
work/whois.c:560:20: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(whereas((long unsigned int)strtol(s + 2, 0, 10)))’
work/whois.c:548:7: enter_function: entry to ‘guess_server’
work/whois.c:555:8: branch_true: following ‘true’ branch (when ‘colon’ is non-NULL)...
work/whois.c:559:13: branch_true: ...to here
work/whois.c:559:13: call_function: calling ‘is_asn’ from ‘guess_server’
work/whois.c:559:13: return_function: returning to ‘guess_server’ from ‘is_asn’
work/whois.c:559:12: branch_true: following ‘true’ branch...
work/whois.c:560:20: branch_true: ...to here
work/whois.c:560:20: call_function: calling ‘whereas’ from ‘guess_server’
work/whois.c:560:20: return_function: returning to ‘guess_server’ from ‘whereas’
work/whois.c:560:20: acquire_memory: allocated here
work/whois.c:560:20: danger: ‘strdup(whereas((long unsigned int)strtol(s + 2, 0, 10)))’ leaks here; was allocated at [(22)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
work/whois.c:565:20: warning[-Wanalyzer-malloc-leak]: leak of ‘convert_teredo(query)’
work/whois.c:317:5: enter_function: entry to ‘handle_query’
work/whois.c:323:8: branch_false: following ‘false’ branch (when ‘hport’ is NULL)...
work/whois.c:326:16: branch_false: ...to here
work/whois.c:326:15: branch_false: following ‘false’ branch...
work/whois.c:329:9: branch_false: ...to here
work/whois.c:329:9: call_function: calling ‘split_server_port’ from ‘handle_query’
work/whois.c:329:9: return_function: returning to ‘handle_query’ from ‘split_server_port’
work/whois.c:377:17: call_function: calling ‘convert_teredo’ from ‘handle_query’
work/whois.c:377:17: return_function: returning to ‘handle_query’ from ‘convert_teredo’
work/whois.c:380:22: call_function: calling ‘guess_server’ from ‘handle_query’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
work/whois.c:565:20: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("\005")’
work/whois.c:555:8: branch_true: following ‘true’ branch (when ‘colon’ is non-NULL)...
work/whois.c:559:13: branch_true: ...to here
work/whois.c:559:12: branch_false: following ‘false’ branch...
work/whois.c:562:20: branch_false: ...to here
work/whois.c:564:12: branch_true: following ‘true’ branch (when ‘v6prefix == 0’)...
work/whois.c:565:20: branch_true: ...to here
work/whois.c:565:20: acquire_memory: allocated here
work/whois.c:565:20: danger: ‘strdup("\005")’ leaks here; was allocated at [(8)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
work/whois.c:567:17: warning[-Wanalyzer-malloc-leak]: leak of ‘convert_teredo(query)’
work/whois.c:317:5: enter_function: entry to ‘handle_query’
work/whois.c:323:8: branch_false: following ‘false’ branch (when ‘hport’ is NULL)...
work/whois.c:326:16: branch_false: ...to here
work/whois.c:326:15: branch_false: following ‘false’ branch...
work/whois.c:329:9: branch_false: ...to here
work/whois.c:329:9: call_function: calling ‘split_server_port’ from ‘handle_query’
work/whois.c:329:9: return_function: returning to ‘handle_query’ from ‘split_server_port’
work/whois.c:377:17: call_function: calling ‘convert_teredo’ from ‘handle_query’
work/whois.c:377:17: return_function: returning to ‘handle_query’ from ‘convert_teredo’
work/whois.c:380:22: call_function: calling ‘guess_server’ from ‘handle_query’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
work/whois.c:572:24: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(ip6_assign[i].serv)’
work/whois.c:555:8: branch_true: following ‘true’ branch (when ‘colon’ is non-NULL)...
work/whois.c:559:13: branch_true: ...to here
work/whois.c:559:12: branch_false: following ‘false’ branch...
work/whois.c:562:20: branch_false: ...to here
work/whois.c:564:12: branch_false: following ‘false’ branch (when ‘v6prefix != 0’)...
work/whois.c:567:17: branch_false: ...to here
work/whois.c:569:21: branch_true: following ‘true’ branch...
work/whois.c:570:41: branch_true: ...to here
work/whois.c:572:24: acquire_memory: allocated here
work/whois.c:572:24: danger: ‘strdup(ip6_assign[i].serv)’ leaks here; was allocated at [(10)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
work/whois.c:575:16: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("\006")’
work/whois.c:555:8: branch_true: following ‘true’ branch (when ‘colon’ is non-NULL)...
work/whois.c:559:13: branch_true: ...to here
work/whois.c:559:12: branch_false: following ‘false’ branch...
work/whois.c:562:20: branch_false: ...to here
work/whois.c:564:12: branch_false: following ‘false’ branch (when ‘v6prefix != 0’)...
work/whois.c:567:17: branch_false: ...to here
work/whois.c:569:21: branch_true: following ‘true’ branch...
work/whois.c:570:41: branch_true: ...to here
work/whois.c:570:16: branch_false: following ‘false’ branch...
work/whois.c:569:41: branch_false: ...to here
work/whois.c:570:16: branch_false: following ‘false’ branch...
work/whois.c:569:41: branch_false: ...to here
work/whois.c:575:16: acquire_memory: allocated here
work/whois.c:575:16: danger: ‘strdup("\006")’ leaks here; was allocated at [(14)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
work/whois.c:580:16: warning[-Wanalyzer-malloc-leak]: leak of ‘convert_teredo(query)’
work/whois.c:317:5: enter_function: entry to ‘handle_query’
work/whois.c:323:8: branch_false: following ‘false’ branch (when ‘hport’ is NULL)...
work/whois.c:326:16: branch_false: ...to here
work/whois.c:326:15: branch_false: following ‘false’ branch...
work/whois.c:329:9: branch_false: ...to here
work/whois.c:329:9: call_function: calling ‘split_server_port’ from ‘handle_query’
work/whois.c:329:9: return_function: returning to ‘handle_query’ from ‘split_server_port’
work/whois.c:377:17: call_function: calling ‘convert_teredo’ from ‘handle_query’
work/whois.c:377:17: return_function: returning to ‘handle_query’ from ‘convert_teredo’
work/whois.c:380:22: call_function: calling ‘guess_server’ from ‘handle_query’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
work/whois.c:580:16: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("\005")’
work/whois.c:555:8: branch_false: following ‘false’ branch (when ‘colon’ is NULL)...
work/whois.c:579:9: branch_false: ...to here
work/whois.c:579:8: branch_true: following ‘true’ branch...
work/whois.c:580:16: branch_true: ...to here
work/whois.c:580:16: acquire_memory: allocated here
work/whois.c:580:16: danger: ‘strdup("\005")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
work/whois.c:584:21: warning[-Wanalyzer-malloc-leak]: leak of ‘convert_teredo(query)’
work/whois.c:317:5: enter_function: entry to ‘handle_query’
work/whois.c:323:8: branch_false: following ‘false’ branch (when ‘hport’ is NULL)...
work/whois.c:326:16: branch_false: ...to here
work/whois.c:326:15: branch_false: following ‘false’ branch...
work/whois.c:329:9: branch_false: ...to here
work/whois.c:329:9: call_function: calling ‘split_server_port’ from ‘handle_query’
work/whois.c:329:9: return_function: returning to ‘handle_query’ from ‘split_server_port’
work/whois.c:377:17: call_function: calling ‘convert_teredo’ from ‘handle_query’
work/whois.c:377:17: return_function: returning to ‘handle_query’ from ‘convert_teredo’
work/whois.c:380:22: call_function: calling ‘guess_server’ from ‘handle_query’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
work/whois.c:586:24: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("whois.iana.org")’
work/whois.c:555:8: branch_false: following ‘false’ branch (when ‘colon’ is NULL)...
work/whois.c:579:9: branch_false: ...to here
work/whois.c:579:8: branch_false: following ‘false’ branch...
work/whois.c:582:10: branch_false: ...to here
work/whois.c:582:8: branch_true: following ‘true’ branch...
work/whois.c:582:8: branch_true: ...to here
work/whois.c:584:21: branch_true: following ‘true’ branch...
work/whois.c:585:17: branch_true: ...to here
work/whois.c:586:24: acquire_memory: allocated here
work/whois.c:586:24: danger: ‘strdup("whois.iana.org")’ leaks here; was allocated at [(12)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
work/whois.c:590:24: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("whois.iana.org")’
work/whois.c:555:8: branch_false: following ‘false’ branch (when ‘colon’ is NULL)...
work/whois.c:579:9: branch_false: ...to here
work/whois.c:579:8: branch_false: following ‘false’ branch...
work/whois.c:582:10: branch_false: ...to here
work/whois.c:582:8: branch_true: following ‘true’ branch...
work/whois.c:582:8: branch_true: ...to here
work/whois.c:588:21: branch_true: following ‘true’ branch...
work/whois.c:589:17: branch_true: ...to here
work/whois.c:590:24: acquire_memory: allocated here
work/whois.c:590:24: danger: ‘strdup("whois.iana.org")’ leaks here; was allocated at [(12)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
work/whois.c:598:20: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("whois.networksolutions.com")’
work/whois.c:555:8: branch_false: following ‘false’ branch (when ‘colon’ is NULL)...
work/whois.c:579:9: branch_false: ...to here
work/whois.c:579:8: branch_false: following ‘false’ branch...
work/whois.c:582:10: branch_false: ...to here
work/whois.c:582:8: branch_false: following ‘false’ branch...
work/whois.c:594:10: branch_false: ...to here
work/whois.c:594:8: branch_true: following ‘true’ branch...
work/whois.c:595:13: branch_true: ...to here
work/whois.c:595:12: branch_false: following ‘false’ branch...
work/whois.c:597:13: branch_false: ...to here
work/whois.c:597:12: branch_true: following ‘true’ branch...
work/whois.c:598:20: branch_true: ...to here
work/whois.c:598:20: acquire_memory: allocated here
work/whois.c:598:20: danger: ‘strdup("whois.networksolutions.com")’ leaks here; was allocated at [(16)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
work/whois.c:600:20: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("\005")’
work/whois.c:555:8: branch_false: following ‘false’ branch (when ‘colon’ is NULL)...
work/whois.c:579:9: branch_false: ...to here
work/whois.c:579:8: branch_false: following ‘false’ branch...
work/whois.c:582:10: branch_false: ...to here
work/whois.c:582:8: branch_false: following ‘false’ branch...
work/whois.c:594:10: branch_false: ...to here
work/whois.c:594:8: branch_true: following ‘true’ branch...
work/whois.c:595:13: branch_true: ...to here
work/whois.c:595:12: branch_false: following ‘false’ branch...
work/whois.c:597:13: branch_false: ...to here
work/whois.c:597:12: branch_false: following ‘false’ branch...
work/whois.c:600:20: branch_false: ...to here
work/whois.c:600:20: acquire_memory: allocated here
work/whois.c:600:20: danger: ‘strdup("\005")’ leaks here; was allocated at [(16)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
work/whois.c:614:20: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(tld_serv[<unknown>])’
work/whois.c:548:7: enter_function: entry to ‘guess_server’
work/whois.c:555:8: branch_false: following ‘false’ branch (when ‘colon’ is NULL)...
work/whois.c:579:9: branch_false: ...to here
work/whois.c:579:8: branch_false: following ‘false’ branch...
work/whois.c:582:10: branch_false: ...to here
work/whois.c:582:8: branch_false: following ‘false’ branch...
work/whois.c:594:10: branch_false: ...to here
work/whois.c:594:8: branch_false: following ‘false’ branch...
work/whois.c:604:15: call_function: inlined call to ‘myinet_aton’ from ‘guess_server’
work/whois.c:604:8: branch_false: following ‘false’ branch...
work/whois.c:604:8: branch_false: ...to here
work/whois.c:612:17: branch_true: following ‘true’ branch...
work/whois.c:613:13: branch_true: ...to here
work/whois.c:614:20: acquire_memory: allocated here
work/whois.c:614:20: danger: ‘strdup(tld_serv[<unknown>])’ leaks here; was allocated at [(18)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
work/whois.c:618:24: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(strlen(is_new_gtld(s)) + 11)’
work/whois.c:548:7: enter_function: entry to ‘guess_server’
work/whois.c:555:8: branch_false: following ‘false’ branch (when ‘colon’ is NULL)...
work/whois.c:579:9: branch_false: ...to here
work/whois.c:579:8: branch_false: following ‘false’ branch...
work/whois.c:582:10: branch_false: ...to here
work/whois.c:582:8: branch_false: following ‘false’ branch...
work/whois.c:594:10: branch_false: ...to here
work/whois.c:594:8: branch_false: following ‘false’ branch...
work/whois.c:604:15: call_function: inlined call to ‘myinet_aton’ from ‘guess_server’
work/whois.c:604:8: branch_false: following ‘false’ branch...
work/whois.c:604:8: branch_false: ...to here
work/whois.c:617:16: call_function: calling ‘is_new_gtld’ from ‘guess_server’
work/whois.c:617:16: return_function: returning to ‘guess_server’ from ‘is_new_gtld’
work/whois.c:617:8: branch_true: following ‘true’ branch...
work/whois.c:618:24: branch_true: ...to here
work/whois.c:618:24: acquire_memory: allocated here
work/whois.c:618:24: danger: ‘malloc(strlen(is_new_gtld(s)) + 11)’ leaks here; was allocated at [(23)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
work/whois.c:629:24: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(nic_handles[<unknown>])’
work/whois.c:548:7: enter_function: entry to ‘guess_server’
work/whois.c:555:8: branch_false: following ‘false’ branch (when ‘colon’ is NULL)...
work/whois.c:579:9: branch_false: ...to here
work/whois.c:579:8: branch_false: following ‘false’ branch...
work/whois.c:582:10: branch_false: ...to here
work/whois.c:582:8: branch_false: following ‘false’ branch...
work/whois.c:594:10: branch_false: ...to here
work/whois.c:594:8: branch_false: following ‘false’ branch...
work/whois.c:604:15: call_function: inlined call to ‘myinet_aton’ from ‘guess_server’
work/whois.c:604:8: branch_false: following ‘false’ branch...
work/whois.c:604:8: branch_false: ...to here
work/whois.c:617:8: branch_false: following ‘false’ branch...
work/whois.c:625:10: branch_false: ...to here
work/whois.c:625:8: branch_true: following ‘true’ branch...
work/whois.c:625:8: branch_true: ...to here
work/whois.c:627:21: branch_true: following ‘true’ branch...
work/whois.c:628:17: branch_true: ...to here
work/whois.c:629:24: acquire_memory: allocated here
work/whois.c:629:24: danger: ‘strdup(nic_handles[<unknown>])’ leaks here; was allocated at [(23)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
work/whois.c:634:24: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(nic_handles_post[<unknown>])’
work/whois.c:548:7: enter_function: entry to ‘guess_server’
work/whois.c:555:8: branch_false: following ‘false’ branch (when ‘colon’ is NULL)...
work/whois.c:579:9: branch_false: ...to here
work/whois.c:579:8: branch_false: following ‘false’ branch...
work/whois.c:582:10: branch_false: ...to here
work/whois.c:582:8: branch_false: following ‘false’ branch...
work/whois.c:594:10: branch_false: ...to here
work/whois.c:594:8: branch_false: following ‘false’ branch...
work/whois.c:604:15: call_function: inlined call to ‘myinet_aton’ from ‘guess_server’
work/whois.c:604:8: branch_false: following ‘false’ branch...
work/whois.c:604:8: branch_false: ...to here
work/whois.c:617:8: branch_false: following ‘false’ branch...
work/whois.c:625:10: branch_false: ...to here
work/whois.c:625:8: branch_true: following ‘true’ branch...
work/whois.c:625:8: branch_true: ...to here
work/whois.c:632:21: branch_true: following ‘true’ branch...
work/whois.c:633:17: branch_true: ...to here
work/whois.c:634:24: acquire_memory: allocated here
work/whois.c:634:24: danger: ‘strdup(nic_handles_post[<unknown>])’ leaks here; was allocated at [(23)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
work/whois.c:637:16: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("")’
work/whois.c:548:7: enter_function: entry to ‘guess_server’
work/whois.c:555:8: branch_false: following ‘false’ branch (when ‘colon’ is NULL)...
work/whois.c:579:9: branch_false: ...to here
work/whois.c:579:8: branch_false: following ‘false’ branch...
work/whois.c:582:10: branch_false: ...to here
work/whois.c:582:8: branch_false: following ‘false’ branch...
work/whois.c:594:10: branch_false: ...to here
work/whois.c:594:8: branch_false: following ‘false’ branch...
work/whois.c:604:15: call_function: inlined call to ‘myinet_aton’ from ‘guess_server’
work/whois.c:604:8: branch_false: following ‘false’ branch...
work/whois.c:604:8: branch_false: ...to here
work/whois.c:617:8: branch_false: following ‘false’ branch...
work/whois.c:625:10: branch_false: ...to here
work/whois.c:625:8: branch_true: following ‘true’ branch...
work/whois.c:625:8: branch_true: ...to here
work/whois.c:637:16: acquire_memory: allocated here
work/whois.c:637:16: danger: ‘strdup("")’ leaks here; was allocated at [(21)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
work/whois.c:642:12: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("\005")’
work/whois.c:548:7: enter_function: entry to ‘guess_server’
work/whois.c:555:8: branch_false: following ‘false’ branch (when ‘colon’ is NULL)...
work/whois.c:579:9: branch_false: ...to here
work/whois.c:579:8: branch_false: following ‘false’ branch...
work/whois.c:582:10: branch_false: ...to here
work/whois.c:582:8: branch_false: following ‘false’ branch...
work/whois.c:594:10: branch_false: ...to here
work/whois.c:594:8: branch_false: following ‘false’ branch...
work/whois.c:604:15: call_function: inlined call to ‘myinet_aton’ from ‘guess_server’
work/whois.c:604:8: branch_false: following ‘false’ branch...
work/whois.c:604:8: branch_false: ...to here
work/whois.c:617:8: branch_false: following ‘false’ branch...
work/whois.c:625:10: branch_false: ...to here
work/whois.c:625:8: branch_false: following ‘false’ branch...
work/whois.c:642:12: branch_false: ...to here
work/whois.c:642:12: acquire_memory: allocated here
work/whois.c:642:12: danger: ‘strdup("\005")’ leaks here; was allocated at [(21)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
work/whois.c:666:11: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(strlen(flags) + strlen(query) + strlen(client_tag) + 64)’
work/whois.c:666:11: acquire_memory: allocated here
work/whois.c:666:11: danger: ‘malloc(strlen(flags) + strlen(query) + strlen(client_tag) + 64)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
work/whois.c:669:17: warning[-Wanalyzer-malloc-leak]: leak of ‘do_nofail(malloc(strlen(flags) + strlen(query) + strlen(client_tag) + 64), "whois.c", 666)’
work/whois.c:683:5: throw: if ‘simple_recode_iconv_close’ throws an exception...
work/whois.c:669:17: danger: ‘do_nofail(malloc(strlen(flags) + strlen(query) + strlen(client_tag) + 64), "whois.c", 666)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
work/whois.c:826:28: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(p + 19)’
work/whois.c:818:8: branch_false: following ‘false’ branch...
work/whois.c:821:8: branch_false: ...to here
work/whois.c:821:8: branch_true: following ‘true’ branch...
work/whois.c:822:13: branch_true: ...to here
work/whois.c:822:12: branch_true: following ‘true’ branch...
work/whois.c:823:13: branch_true: ...to here
work/whois.c:825:16: branch_true: following ‘true’ branch...
work/whois.c:826:28: branch_true: ...to here
work/whois.c:826:28: acquire_memory: allocated here
work/whois.c:826:28: danger: ‘strdup(p + 19)’ leaks here; was allocated at [(9)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
work/whois.c:863:21: warning[-Wanalyzer-malloc-leak]: leak of ‘do_nofail(strdup(rir_servers[<unknown>]), "whois.c", 865)’
work/whois.c:818:8: branch_false: following ‘false’ branch...
work/whois.c:821:8: branch_false: ...to here
work/whois.c:821:8: branch_false: following ‘false’ branch...
work/whois.c:851:8: branch_false: ...to here
work/whois.c:851:8: branch_true: following ‘true’ branch...
work/whois.c:863:21: branch_true: following ‘true’ branch...
work/whois.c:864:17: branch_true: ...to here
work/whois.c:864:16: branch_true: following ‘true’ branch (when the strings are equal)...
work/whois.c:865:36: branch_true: ...to here
work/whois.c:863:21: branch_true: following ‘true’ branch...
work/whois.c:864:17: branch_true: ...to here
work/whois.c:864:16: branch_true: following ‘true’ branch (when the strings are equal)...
work/whois.c:865:36: branch_true: ...to here
work/whois.c:865:36: throw: if ‘do_nofail’ throws an exception...
work/whois.c:863:21: danger: ‘do_nofail(strdup(rir_servers[<unknown>]), "whois.c", 865)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
work/whois.c:865:36: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(rir_servers[<unknown>])’
work/whois.c:818:8: branch_false: following ‘false’ branch...
work/whois.c:821:8: branch_false: ...to here
work/whois.c:821:8: branch_false: following ‘false’ branch...
work/whois.c:851:8: branch_false: ...to here
work/whois.c:851:8: branch_true: following ‘true’ branch...
work/whois.c:863:21: branch_true: following ‘true’ branch...
work/whois.c:864:17: branch_true: ...to here
work/whois.c:864:16: branch_true: following ‘true’ branch (when the strings are equal)...
work/whois.c:865:36: branch_true: ...to here
work/whois.c:865:36: acquire_memory: allocated here
work/whois.c:865:36: danger: ‘strdup(rir_servers[<unknown>])’ leaks here; was allocated at [(11)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/10)
Error: COMPILER_WARNING (CWE-704): [#def55]
work/whois.c: scope_hint: In function ‘find_referral_server_arin’
work/whois.c:892:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def56]
work/whois.c:892:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
work/whois.c:893:28: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(p + 9)’
work/whois.c:887:8: branch_false: following ‘false’ branch...
work/whois.c:892:14: branch_false: ...to here
work/whois.c:892:8: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
work/whois.c:893:28: branch_true: ...to here
work/whois.c:893:28: acquire_memory: allocated here
work/whois.c:893:28: danger: ‘strdup(p + 9)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/5)
Error: COMPILER_WARNING (CWE-704): [#def58]
work/whois.c:894:17: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def59]
work/whois.c:894:17: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
work/whois.c:895:28: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(p + 8)’
work/whois.c:887:8: branch_false: following ‘false’ branch...
work/whois.c:892:14: branch_false: ...to here
work/whois.c:892:8: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
work/whois.c:894:19: branch_false: ...to here
work/whois.c:894:13: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
work/whois.c:895:28: branch_true: ...to here
work/whois.c:895:28: acquire_memory: allocated here
work/whois.c:895:28: danger: ‘strdup(p + 8)’ leaks here; was allocated at [(9)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
work/whois.c:897:28: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(buf + 17)’
work/whois.c:887:8: branch_false: following ‘false’ branch...
work/whois.c:892:14: branch_false: ...to here
work/whois.c:892:8: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
work/whois.c:894:19: branch_false: ...to here
work/whois.c:894:13: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
work/whois.c:897:28: branch_false: ...to here
work/whois.c:897:28: acquire_memory: allocated here
work/whois.c:897:28: danger: ‘strdup(buf + 17)’ leaks here; was allocated at [(9)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
work/whois.c:917:24: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(p)’
work/whois.c:917:24: acquire_memory: allocated here
work/whois.c:917:24: danger: ‘strdup(p)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
work/whois.c:935:28: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(p)’
work/whois.c:930:14: branch_false: following ‘false’ branch...
work/whois.c:932:13: branch_false: ...to here
work/whois.c:932:13: branch_true: following ‘true’ branch...
work/whois.c:935:28: acquire_memory: allocated here
work/whois.c:935:28: danger: ‘strdup(p)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
work/whois.c:953:28: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("")’
work/whois.c:950:9: branch_false: following ‘false’ branch...
work/whois.c:952:15: branch_false: ...to here
work/whois.c:952:15: branch_true: following ‘true’ branch...
work/whois.c:953:28: acquire_memory: allocated here
work/whois.c:953:28: danger: ‘strdup("")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
work/whois.c:958:28: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(p)’
work/whois.c:955:15: branch_true: following ‘true’ branch...
work/whois.c:958:28: acquire_memory: allocated here
work/whois.c:958:28: danger: ‘strdup(p)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
work/whois.c:973:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(strlen(query) + 3)’
work/whois.c:973:12: acquire_memory: allocated here
work/whois.c:973:12: danger: ‘malloc(strlen(query) + 3)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
work/whois.c:975:5: warning[-Wanalyzer-malloc-leak]: leak of ‘do_nofail(malloc(strlen(query) + 3), "whois.c", 973)’
work/whois.c:964:7: enter_function: entry to ‘query_server’
work/whois.c:977:17: branch_true: following ‘true’ branch...
work/whois.c:981:13: branch_true: ...to here
work/whois.c:986:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
work/whois.c:977:51: branch_false: ...to here
work/whois.c:986:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
work/whois.c:977:51: branch_false: ...to here
work/whois.c:992:12: call_function: calling ‘openconn’ from ‘query_server’
Error: COMPILER_WARNING (CWE-563): [#def68]
work/whois.c: scope_hint: In function ‘query_verisign’
work/whois.c:1034:9: warning[-Wunused-variable]: unused variable ‘sock’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
work/whois.c:1038:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(strlen(query) + 10)’
work/whois.c:1038:12: acquire_memory: allocated here
work/whois.c:1038:12: danger: ‘malloc(strlen(query) + 10)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/70/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
work/whois.c:1042:30: warning[-Wanalyzer-malloc-leak]: leak of ‘do_nofail(malloc(strlen(query) + 10), "whois.c", 1038)’
work/whois.c:1031:7: enter_function: entry to ‘query_verisign’
work/whois.c:1050:23: call_function: calling ‘query_server’ from ‘query_verisign’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def71]
work/whois.c:1139:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
work/whois.c:1055:5: enter_function: entry to ‘openconn’
work/whois.c:1084:8: branch_false: following ‘false’ branch...
work/whois.c:1092:10: branch_false: ...to here
work/whois.c:1092:20: branch_true: following ‘true’ branch (when ‘ai’ is non-NULL)...
work/whois.c:1094:14: branch_true: ...to here
work/whois.c:1096:19: acquire_resource: socket created here
work/whois.c:1096:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
work/whois.c:1098:13: branch_false: ...to here
work/whois.c:1098:13: call_function: calling ‘connect_with_timeout’ from ‘openconn’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def72]
work/whois.c:1141:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
work/whois.c:1055:5: enter_function: entry to ‘openconn’
work/whois.c:1084:8: branch_false: following ‘false’ branch...
work/whois.c:1092:10: branch_false: ...to here
work/whois.c:1092:20: branch_true: following ‘true’ branch (when ‘ai’ is non-NULL)...
work/whois.c:1094:14: branch_true: ...to here
work/whois.c:1096:19: acquire_resource: socket created here
work/whois.c:1096:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
work/whois.c:1098:13: branch_false: ...to here
work/whois.c:1098:13: call_function: calling ‘connect_with_timeout’ from ‘openconn’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
work/whois.c:1291:11: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(dom)’
work/whois.c:1291:11: acquire_memory: allocated here
work/whois.c:1291:11: danger: ‘strdup(dom)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/81/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
work/whois.c:1293:27: warning[-Wanalyzer-malloc-leak]: leak of ‘do_nofail(strdup(dom), "whois.c", 1291)’
work/whois.c:1306:8: branch_false: following ‘false’ branch...
work/whois.c:1306:8: branch_false: ...to here
work/whois.c:1310:19: branch_true: following ‘true’ branch...
work/whois.c:1311:12: branch_true: ...to here
work/whois.c:1310:19: branch_false: following ‘false’ branch...
work/whois.c:1314:8: branch_false: ...to here
work/whois.c:1314:8: branch_false: following ‘false’ branch (when ‘domain_start’ is NULL)...
work/whois.c:1340:13: branch_false: ...to here
work/whois.c:1340:13: throw: if ‘idn2_lookup_ul’ throws an exception...
work/whois.c:1293:27: danger: ‘do_nofail(strdup(dom), "whois.c", 1291)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/82/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
work/whois.c:1340:13: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
work/whois.c:1306:8: branch_false: following ‘false’ branch...
work/whois.c:1306:8: branch_false: ...to here
work/whois.c:1310:19: branch_false: following ‘false’ branch...
work/whois.c:1314:8: branch_false: ...to here
work/whois.c:1314:8: branch_false: following ‘false’ branch (when ‘domain_start’ is NULL)...
work/whois.c:1340:13: branch_false: ...to here
work/whois.c:1340:13: throw: if ‘idn2_lookup_ul’ throws an exception...
work/whois.c:1340:13: danger: ‘p’ leaks here; was allocated at [(1)](sarif:/runs/0/results/84/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING (CWE-704): [#def76]
work/whois.c: scope_hint: In function ‘split_server_port’
work/whois.c:1361:29: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def77]
work/whois.c:1361:29: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
work/whois.c:1365:23: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc((long unsigned int)(int)(p - input))’
work/whois.c:1361:8: branch_true: following ‘true’ branch...
work/whois.c:1361:31: branch_true: ...to here
work/whois.c:1361:9: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
work/whois.c:1363:19: branch_true: ...to here
work/whois.c:1365:23: acquire_memory: allocated here
work/whois.c:1365:23: danger: ‘malloc((long unsigned int)(int)(p - input))’ leaks here; was allocated at [(6)](sarif:/runs/0/results/85/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
work/whois.c:1371:21: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(p + 1)’
work/whois.c:1361:8: branch_true: following ‘true’ branch...
work/whois.c:1361:31: branch_true: ...to here
work/whois.c:1361:9: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
work/whois.c:1363:19: branch_true: ...to here
work/whois.c:1370:12: branch_true: following ‘true’ branch...
work/whois.c:1371:21: acquire_memory: allocated here
work/whois.c:1371:21: danger: ‘strdup(p + 1)’ leaks here; was allocated at [(9)](sarif:/runs/0/results/86/codeFlows/0/threadFlows/0/locations/8)
Error: COMPILER_WARNING (CWE-704): [#def80]
work/whois.c:1372:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def81]
work/whois.c:1372:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
work/whois.c:1374:19: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(input)’
work/whois.c:1372:15: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
work/whois.c:1373:13: branch_true: ...to here
work/whois.c:1372:16: branch_true: following ‘true’ branch...
work/whois.c:1374:19: branch_true: ...to here
work/whois.c:1374:19: acquire_memory: allocated here
work/whois.c:1374:19: danger: ‘strdup(input)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/87/codeFlows/0/threadFlows/0/locations/6)
Error: COMPILER_WARNING (CWE-704): [#def83]
work/whois.c:1375:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def84]
work/whois.c:1375:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
work/whois.c:1379:23: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc((long unsigned int)(len + 1))’
work/whois.c:1372:15: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
work/whois.c:1373:13: branch_true: ...to here
work/whois.c:1372:16: branch_false: following ‘false’ branch...
work/whois.c:1375:15: branch_false: ...to here
work/whois.c:1375:15: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
work/whois.c:1377:19: branch_true: ...to here
work/whois.c:1379:23: acquire_memory: allocated here
work/whois.c:1379:23: danger: ‘malloc((long unsigned int)(len + 1))’ leaks here; was allocated at [(9)](sarif:/runs/0/results/88/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
work/whois.c:1385:21: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(p)’
work/whois.c:1372:15: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
work/whois.c:1373:13: branch_true: ...to here
work/whois.c:1372:16: branch_false: following ‘false’ branch...
work/whois.c:1375:15: branch_false: ...to here
work/whois.c:1375:15: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
work/whois.c:1377:19: branch_true: ...to here
work/whois.c:1384:12: branch_true: following ‘true’ branch...
work/whois.c:1385:21: branch_true: ...to here
work/whois.c:1385:21: acquire_memory: allocated here
work/whois.c:1385:21: danger: ‘strdup(p)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/89/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
work/whois.c:1387:19: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(input)’
work/whois.c:1372:15: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
work/whois.c:1375:15: branch_false: ...to here
work/whois.c:1375:15: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
work/whois.c:1387:19: branch_false: ...to here
work/whois.c:1387:19: acquire_memory: allocated here
work/whois.c:1387:19: danger: ‘strdup(input)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/90/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
work/whois.c:1404:9: warning[-Wanalyzer-malloc-leak]: leak of ‘convert_6to4(query)’
work/whois.c:317:5: enter_function: entry to ‘handle_query’
work/whois.c:323:8: branch_false: following ‘false’ branch (when ‘hport’ is NULL)...
work/whois.c:326:16: branch_false: ...to here
work/whois.c:326:15: branch_false: following ‘false’ branch...
work/whois.c:329:9: branch_false: ...to here
work/whois.c:329:9: call_function: calling ‘split_server_port’ from ‘handle_query’
work/whois.c:329:9: return_function: returning to ‘handle_query’ from ‘split_server_port’
work/whois.c:370:17: call_function: calling ‘convert_6to4’ from ‘handle_query’
work/whois.c:370:17: return_function: returning to ‘handle_query’ from ‘convert_6to4’
work/whois.c:373:22: call_function: calling ‘guess_server’ from ‘handle_query’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
work/whois.c:1405:16: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("0.0.0.0")’
work/whois.c:1405:16: acquire_memory: allocated here
work/whois.c:1405:16: danger: ‘strdup("0.0.0.0")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/96/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
work/whois.c:1410:20: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("0.0.0.0")’
work/whois.c:1404:8: branch_false: following ‘false’ branch...
work/whois.c:1404:9: branch_false: ...to here
work/whois.c:1407:8: branch_true: following ‘true’ branch (when ‘items == 1’)...
work/whois.c:1408:17: branch_true: ...to here
work/whois.c:1410:20: acquire_memory: allocated here
work/whois.c:1410:20: danger: ‘strdup("0.0.0.0")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/97/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
work/whois.c:1414:11: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(16)’
work/whois.c:1404:8: branch_false: following ‘false’ branch...
work/whois.c:1404:9: branch_false: ...to here
work/whois.c:1414:11: acquire_memory: allocated here
work/whois.c:1414:11: danger: ‘malloc(16)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/98/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
work/whois.c:1426:16: warning[-Wanalyzer-malloc-leak]: leak of ‘server’
work/whois.c:317:5: enter_function: entry to ‘handle_query’
work/whois.c:323:8: branch_false: following ‘false’ branch (when ‘hport’ is NULL)...
work/whois.c:326:16: branch_false: ...to here
work/whois.c:326:15: branch_true: following ‘true’ branch...
work/whois.c:327:18: branch_true: ...to here
work/whois.c:377:17: call_function: calling ‘convert_teredo’ from ‘handle_query’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
work/whois.c:1426:16: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("0.0.0.0")’
work/whois.c:1425:8: branch_true: following ‘true’ branch...
work/whois.c:1426:16: branch_true: ...to here
work/whois.c:1426:16: acquire_memory: allocated here
work/whois.c:1426:16: danger: ‘strdup("0.0.0.0")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/99/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
work/whois.c:1430:11: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(16)’
work/whois.c:1425:8: branch_false: following ‘false’ branch...
work/whois.c:1428:7: branch_false: ...to here
work/whois.c:1430:11: acquire_memory: allocated here
work/whois.c:1430:11: danger: ‘malloc(16)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/101/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
work/whois.c:1446:16: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("0.0.0.0")’
work/whois.c:1446:16: acquire_memory: allocated here
work/whois.c:1446:16: danger: ‘strdup("0.0.0.0")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/102/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
work/whois.c:1451:20: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("0.0.0.0")’
work/whois.c:1436:7: enter_function: entry to ‘convert_inaddr’
work/whois.c:1445:8: branch_false: following ‘false’ branch...
work/whois.c:1448:9: call_function: calling ‘in_domain’ from ‘convert_inaddr’
work/whois.c:1448:9: return_function: returning to ‘convert_inaddr’ from ‘in_domain’
work/whois.c:1448:8: branch_true: following ‘true’ branch...
work/whois.c:1449:13: branch_true: ...to here
work/whois.c:1451:20: acquire_memory: allocated here
work/whois.c:1451:20: danger: ‘strdup("0.0.0.0")’ leaks here; was allocated at [(17)](sarif:/runs/0/results/103/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
work/whois.c:1456:24: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("0.0.0.0")’
work/whois.c:1436:7: enter_function: entry to ‘convert_inaddr’
work/whois.c:1445:8: branch_false: following ‘false’ branch...
work/whois.c:1448:9: call_function: calling ‘in_domain’ from ‘convert_inaddr’
work/whois.c:1448:9: return_function: returning to ‘convert_inaddr’ from ‘in_domain’
work/whois.c:1448:8: branch_true: following ‘true’ branch...
work/whois.c:1449:13: branch_true: ...to here
work/whois.c:1450:12: branch_false: following ‘false’ branch...
work/whois.c:1453:13: call_function: calling ‘in_domain’ from ‘convert_inaddr’
work/whois.c:1453:13: return_function: returning to ‘convert_inaddr’ from ‘in_domain’
work/whois.c:1453:12: branch_true: following ‘true’ branch...
work/whois.c:1454:17: branch_true: ...to here
work/whois.c:1456:24: acquire_memory: allocated here
work/whois.c:1456:24: danger: ‘strdup("0.0.0.0")’ leaks here; was allocated at [(32)](sarif:/runs/0/results/104/codeFlows/0/threadFlows/0/locations/31)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
work/whois.c:1459:24: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("0.0.0.0")’
work/whois.c:1436:7: enter_function: entry to ‘convert_inaddr’
work/whois.c:1445:8: branch_false: following ‘false’ branch...
work/whois.c:1448:9: call_function: calling ‘in_domain’ from ‘convert_inaddr’
work/whois.c:1448:9: return_function: returning to ‘convert_inaddr’ from ‘in_domain’
work/whois.c:1448:8: branch_true: following ‘true’ branch...
work/whois.c:1449:13: branch_true: ...to here
work/whois.c:1450:12: branch_false: following ‘false’ branch...
work/whois.c:1453:13: call_function: calling ‘in_domain’ from ‘convert_inaddr’
work/whois.c:1453:13: return_function: returning to ‘convert_inaddr’ from ‘in_domain’
work/whois.c:1453:12: branch_true: following ‘true’ branch...
work/whois.c:1454:17: branch_true: ...to here
work/whois.c:1455:16: branch_false: following ‘false’ branch...
work/whois.c:1458:17: call_function: calling ‘in_domain’ from ‘convert_inaddr’
work/whois.c:1458:17: return_function: returning to ‘convert_inaddr’ from ‘in_domain’
work/whois.c:1458:16: branch_true: following ‘true’ branch...
work/whois.c:1459:24: branch_true: ...to here
work/whois.c:1459:24: acquire_memory: allocated here
work/whois.c:1459:24: danger: ‘strdup("0.0.0.0")’ leaks here; was allocated at [(47)](sarif:/runs/0/results/105/codeFlows/0/threadFlows/0/locations/46)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
work/whois.c:1467:11: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(16)’
work/whois.c:1445:8: branch_false: following ‘false’ branch...
work/whois.c:1448:8: branch_false: following ‘false’ branch...
work/whois.c:1467:11: branch_false: ...to here
work/whois.c:1467:11: acquire_memory: allocated here
work/whois.c:1467:11: danger: ‘malloc(16)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/106/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
work/whois.c:1478:10: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(40)’
work/whois.c:1478:10: acquire_memory: allocated here
work/whois.c:1478:10: danger: ‘malloc(40)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/107/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING (CWE-704): [#def101]
work/whois.c: scope_hint: In function ‘convert_in6arpa’
work/whois.c:1480:7: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def102]
work/whois.c:1480:7: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Scan Properties
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-100.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | whois-5.6.5-1.fc44 |
| store-results-to | /tmp/tmp4kzqzfeb/whois-5.6.5-1.fc44.tar.xz |
| time-created | 2026-01-08 22:07:17 |
| time-finished | 2026-01-08 22:08:32 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp4kzqzfeb/whois-5.6.5-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp4kzqzfeb/whois-5.6.5-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |