serd-0.32.6-1.fc44
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
serd-0.32.6/src/base64.c:91:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘out’
serd-0.32.6/src/base64.c:98:1: enter_function: entry to ‘serd_base64_decode’
serd-0.32.6/src/base64.c:105:15: acquire_memory: this call could return NULL
serd-0.32.6/src/base64.c:108:29: branch_true: following ‘true’ branch (when ‘i < len’)...
serd-0.32.6/src/base64.c:109:13: branch_true: ...to here
serd-0.32.6/src/base64.c:111:12: branch_true: following ‘true’ branch...
serd-0.32.6/src/base64.c:111:12: branch_true: ...to here
serd-0.32.6/src/base64.c:112:14: branch_true: following ‘true’ branch...
serd-0.32.6/src/base64.c:111:12: branch_true: following ‘true’ branch...
serd-0.32.6/src/base64.c:111:12: branch_true: ...to here
serd-0.32.6/src/base64.c:112:14: branch_true: following ‘true’ branch...
serd-0.32.6/src/base64.c:111:12: branch_false: following ‘false’ branch...
serd-0.32.6/src/base64.c:119:8: branch_false: ...to here
serd-0.32.6/src/base64.c:119:8: branch_true: following ‘true’ branch (when ‘n_in > 1’)...
serd-0.32.6/src/base64.c:120:16: branch_true: ...to here
serd-0.32.6/src/base64.c:120:16: call_function: calling ‘decode_chunk’ from ‘serd_base64_decode’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
serd-0.32.6/src/byte_sink.h:30:27: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
serd-0.32.6/src/writer.c:1083:1: enter_function: entry to ‘serd_writer_new’
serd-0.32.6/src/writer.c:1101:24: call_function: inlined call to ‘serd_stack_new’ from ‘serd_writer_new’
serd-0.32.6/src/writer.c:1102:24: branch_true: following ‘true’ branch...
serd-0.32.6/src/writer.c:1102:24: call_function: inlined call to ‘serd_byte_sink_new’ from ‘serd_writer_new’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
serd-0.32.6/src/byte_sink.h:30:27: warning[-Wanalyzer-malloc-leak]: leak of ‘writer’
serd-0.32.6/src/writer.c:1083:1: enter_function: entry to ‘serd_writer_new’
serd-0.32.6/src/writer.c:1093:37: acquire_memory: allocated here
serd-0.32.6/src/writer.c:1102:24: branch_true: following ‘true’ branch...
serd-0.32.6/src/writer.c:1102:24: call_function: inlined call to ‘serd_byte_sink_new’ from ‘serd_writer_new’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
serd-0.32.6/src/env.c:78:5: warning[-Wanalyzer-malloc-leak]: leak of ‘env’
serd-0.32.6/src/env.c:26:1: enter_function: entry to ‘serd_env_new’
serd-0.32.6/src/env.c:28:28: acquire_memory: allocated here
serd-0.32.6/src/env.c:29:6: branch_true: following ‘true’ branch...
serd-0.32.6/src/env.c:30:9: call_function: calling ‘serd_env_set_base_uri’ from ‘serd_env_new’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
serd-0.32.6/src/env.c:87:5: warning[-Wanalyzer-malloc-leak]: leak of ‘env’
serd-0.32.6/src/env.c:26:1: enter_function: entry to ‘serd_env_new’
serd-0.32.6/src/env.c:28:28: acquire_memory: allocated here
serd-0.32.6/src/env.c:29:6: branch_true: following ‘true’ branch...
serd-0.32.6/src/env.c:30:9: call_function: calling ‘serd_env_set_base_uri’ from ‘serd_env_new’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
serd-0.32.6/src/env.c:90:3: warning[-Wanalyzer-malloc-leak]: leak of ‘env’
serd-0.32.6/src/env.c:26:1: enter_function: entry to ‘serd_env_new’
serd-0.32.6/src/env.c:28:28: acquire_memory: allocated here
serd-0.32.6/src/env.c:29:6: branch_true: following ‘true’ branch...
serd-0.32.6/src/env.c:30:9: call_function: calling ‘serd_env_set_base_uri’ from ‘serd_env_new’
Error: CPPCHECK_WARNING (CWE-476): [#def7]
serd-0.32.6/src/node.c:92: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: GCC_ANALYZER_WARNING (CWE-688): [#def8]
serd-0.32.6/src/node.c:92:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘buf’ where non-null expected
serd-0.32.6/src/node.c:86:6: branch_false: following ‘false’ branch...
serd-0.32.6/src/node.c:91:29: acquire_memory: this call could return NULL
serd-0.32.6/src/node.c:92:3: danger: argument 1 (‘buf’) from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def9]
serd-0.32.6/src/node.c:171: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: uri
Error: GCC_ANALYZER_WARNING (CWE-688): [#def10]
serd-0.32.6/src/node.c:171:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘uri’ where non-null expected
serd-0.32.6/src/node.c:169:25: acquire_memory: this call could return NULL
serd-0.32.6/src/node.c:171:5: danger: argument 1 (‘uri’) from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-682): [#def11]
serd-0.32.6/src/node.c:174: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
serd-0.32.6/src/node.c:187:7: warning[-Wanalyzer-malloc-leak]: leak of ‘uri’
serd-0.32.6/src/node.c:169:25: acquire_memory: allocated here
serd-0.32.6/src/node.c:173:8: branch_false: following ‘false’ branch (when ‘hostname’ is NULL)...
serd-0.32.6/src/node.c:177:8: branch_false: ...to here
serd-0.32.6/src/node.c:177:8: branch_false: following ‘false’ branch...
serd-0.32.6/src/node.c:182:13: branch_false: ...to here
serd-0.32.6/src/node.c:183:22: branch_true: following ‘true’ branch (when ‘i < path_len’)...
serd-0.32.6/src/node.c:184:13: branch_true: ...to here
serd-0.32.6/src/node.c:184:8: branch_false: following ‘false’ branch...
serd-0.32.6/src/node.c:186:15: branch_false: ...to here
serd-0.32.6/src/node.c:187:7: throw: if ‘serd_chunk_sink’ throws an exception...
serd-0.32.6/src/node.c:187:7: danger: ‘uri’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
serd-0.32.6/src/node.c:199:33: warning[-Wanalyzer-malloc-leak]: leak of ‘uri’
serd-0.32.6/src/node.c:169:25: acquire_memory: allocated here
serd-0.32.6/src/node.c:173:8: branch_false: following ‘false’ branch (when ‘hostname’ is NULL)...
serd-0.32.6/src/node.c:177:8: branch_false: ...to here
serd-0.32.6/src/node.c:177:8: branch_false: following ‘false’ branch...
serd-0.32.6/src/node.c:182:13: branch_false: ...to here
serd-0.32.6/src/node.c:183:22: branch_false: following ‘false’ branch (when ‘i >= path_len’)...
serd-0.32.6/src/node.c:199:33: branch_false: ...to here
serd-0.32.6/src/node.c:199:33: throw: if ‘serd_chunk_sink_finish’ throws an exception...
serd-0.32.6/src/node.c:199:33: danger: ‘uri’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
serd-0.32.6/src/node.c:224:29: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
serd-0.32.6/src/node.c:221:39: acquire_memory: allocated here
serd-0.32.6/src/node.c:224:29: throw: if ‘serd_uri_serialise’ throws an exception...
serd-0.32.6/src/node.c:224:29: danger: ‘ptr’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def15]
serd-0.32.6/src/node.c:226: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
serd-0.32.6/src/node.c:251:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
serd-0.32.6/src/node.c:247:37: acquire_memory: allocated here
serd-0.32.6/src/node.c:251:5: throw: if ‘serd_uri_serialise_relative’ throws an exception...
serd-0.32.6/src/node.c:251:5: danger: ‘ptr’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def17]
serd-0.32.6/src/node.c:253: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: CPPCHECK_WARNING (CWE-682): [#def18]
serd-0.32.6/src/node.c:285: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def19]
serd-0.32.6/src/node.c:287:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
serd-0.32.6/src/node.c:274:6: branch_false: following ‘false’ branch (when ‘d ord d’)...
serd-0.32.6/src/node.c:274:19: branch_false: ...to here
serd-0.32.6/src/node.c:274:7: branch_true: following ‘true’ branch...
serd-0.32.6/src/node.c:279:31: branch_true: ...to here
serd-0.32.6/src/node.c:280:38: acquire_memory: this call could return NULL
serd-0.32.6/src/node.c:286:6: branch_true: following ‘true’ branch (when ‘d < 0.0’)...
serd-0.32.6/src/node.c:287:5: branch_true: ...to here
serd-0.32.6/src/node.c:287:5: danger: ‘buf’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-682): [#def20]
serd-0.32.6/src/node.c:335: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def21]
serd-0.32.6/src/node.c:337: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: GCC_ANALYZER_WARNING (CWE-476): [#def22]
serd-0.32.6/src/node.c:337:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
serd-0.32.6/src/node.c:329:27: branch_true: following ‘true’ branch (when ‘i < 0’)...
serd-0.32.6/src/node.c:329:37: branch_true: ...to here
serd-0.32.6/src/node.c:331:34: acquire_memory: this call could return NULL
serd-0.32.6/src/node.c:336:6: branch_true: following ‘true’ branch (when ‘i < 0’)...
serd-0.32.6/src/node.c:337:5: branch_true: ...to here
serd-0.32.6/src/node.c:337:5: danger: ‘buf’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
serd-0.32.6/src/node.c:362:7: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
serd-0.32.6/src/node.c:359:33: acquire_memory: allocated here
serd-0.32.6/src/node.c:362:7: throw: if ‘serd_base64_encode’ throws an exception...
serd-0.32.6/src/node.c:362:7: danger: ‘str’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def24]
serd-0.32.6/src/reader.c:105: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: reader
Error: CPPCHECK_WARNING (CWE-476): [#def25]
serd-0.32.6/src/reader.c:206: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: me
Error: CPPCHECK_WARNING (CWE-476): [#def26]
serd-0.32.6/src/reader.c:207: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: me
Error: CPPCHECK_WARNING (CWE-476): [#def27]
serd-0.32.6/src/reader.c:208: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: me
Error: CPPCHECK_WARNING (CWE-476): [#def28]
serd-0.32.6/src/reader.c:209: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: me
Error: CPPCHECK_WARNING (CWE-476): [#def29]
serd-0.32.6/src/reader.c:210: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: me
Error: CPPCHECK_WARNING (CWE-476): [#def30]
serd-0.32.6/src/reader.c:211: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: me
Error: CPPCHECK_WARNING (CWE-476): [#def31]
serd-0.32.6/src/reader.c:212: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: me
Error: CPPCHECK_WARNING (CWE-476): [#def32]
serd-0.32.6/src/reader.c:213: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: me
Error: CPPCHECK_WARNING (CWE-476): [#def33]
serd-0.32.6/src/reader.c:214: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: me
Error: CPPCHECK_WARNING (CWE-476): [#def34]
serd-0.32.6/src/reader.c:215: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: me
Error: CPPCHECK_WARNING (CWE-476): [#def35]
serd-0.32.6/src/reader.c:216: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: me
Error: CPPCHECK_WARNING (CWE-476): [#def36]
serd-0.32.6/src/reader.c:218: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: me
Error: CPPCHECK_WARNING (CWE-476): [#def37]
serd-0.32.6/src/reader.c:219: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: me
Error: CPPCHECK_WARNING (CWE-476): [#def38]
serd-0.32.6/src/reader.c:220: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: me
Error: GCC_ANALYZER_WARNING (CWE-404): [#def39]
serd-0.32.6/src/serd_internal.h:28:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
serd-0.32.6/src/reader.c:462:1: enter_function: entry to ‘serd_reader_read_string’
serd-0.32.6/src/reader.c:469:19: call_function: calling ‘serd_reader_prepare’ from ‘serd_reader_read_string’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def40]
serd-0.32.6/src/serdi.c:324:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘in_fd’
serd-0.32.6/src/serdi.c:178:1: enter_function: entry to ‘main’
serd-0.32.6/src/serdi.c:281:6: branch_false: following ‘false’ branch (when ‘a != argc’)...
serd-0.32.6/src/serdi.c:292:52: branch_false: ...to here
serd-0.32.6/src/serdi.c:293:6: branch_true: following ‘true’ branch (when ‘from_file != 0’)...
serd-0.32.6/src/serdi.c:294:15: branch_true: ...to here
serd-0.32.6/src/serdi.c:294:15: branch_false: following ‘false’ branch (when ‘in_name’ is NULL)...
serd-0.32.6/src/serdi.c:294:15: branch_false: ...to here
serd-0.32.6/src/serdi.c:295:8: branch_true: following ‘true’ branch (when ‘in_fd’ is NULL)...
serd-0.32.6/src/serdi.c:296:12: branch_true: ...to here
serd-0.32.6/src/serdi.c:296:10: branch_false: following ‘false’ branch...
serd-0.32.6/src/serdi.c:300:31: branch_false: ...to here
serd-0.32.6/src/serdi.c:300:31: call_function: calling ‘serd_fopen’ from ‘main’
serd-0.32.6/src/serdi.c:300:31: return_function: returning to ‘main’ from ‘serd_fopen’
serd-0.32.6/src/serdi.c:300:11: branch_false: following ‘false’ branch...
serd-0.32.6/src/serdi.c:306:6: branch_false: ...to here
serd-0.32.6/src/serdi.c:306:6: branch_true: following ‘true’ branch (when ‘input_syntax == 0’)...
serd-0.32.6/src/serdi.c:306:41: branch_true: ...to here
serd-0.32.6/src/serdi.c:306:41: call_function: calling ‘guess_syntax’ from ‘main’
serd-0.32.6/src/serdi.c:306:41: return_function: returning to ‘main’ from ‘guess_syntax’
serd-0.32.6/src/serdi.c:306:7: branch_true: following ‘true’ branch...
serd-0.32.6/src/serdi.c:306:7: branch_true: ...to here
serd-0.32.6/src/serdi.c:310:6: branch_true: following ‘true’ branch (when ‘output_syntax == 0’)...
serd-0.32.6/src/serdi.c:312:8: branch_true: ...to here
serd-0.32.6/src/serdi.c:312:7: branch_false: following ‘false’ branch...
serd-0.32.6/src/serdi.c:312:7: branch_false: ...to here
serd-0.32.6/src/serdi.c:317:34: call_function: calling ‘choose_style’ from ‘main’
serd-0.32.6/src/serdi.c:317:34: return_function: returning to ‘main’ from ‘choose_style’
serd-0.32.6/src/serdi.c:322:6: branch_true: following ‘true’ branch (when ‘argc > a’)...
serd-0.32.6/src/serdi.c:324:57: branch_true: ...to here
serd-0.32.6/src/serdi.c:324:7: throw: if ‘serd_node_new_uri_from_string’ throws an exception...
serd-0.32.6/src/serdi.c:324:7: danger: ‘in_fd’ leaks here; was opened at [(14)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
serd-0.32.6/src/serdi.c:324:7: warning[-Wanalyzer-malloc-leak]: leak of ‘in_fd’
serd-0.32.6/src/serdi.c:178:1: enter_function: entry to ‘main’
serd-0.32.6/src/serdi.c:281:6: branch_false: following ‘false’ branch (when ‘a != argc’)...
serd-0.32.6/src/serdi.c:292:52: branch_false: ...to here
serd-0.32.6/src/serdi.c:293:6: branch_true: following ‘true’ branch (when ‘from_file != 0’)...
serd-0.32.6/src/serdi.c:294:15: branch_true: ...to here
serd-0.32.6/src/serdi.c:294:15: branch_false: following ‘false’ branch (when ‘in_name’ is NULL)...
serd-0.32.6/src/serdi.c:294:15: branch_false: ...to here
serd-0.32.6/src/serdi.c:295:8: branch_true: following ‘true’ branch (when ‘in_fd’ is NULL)...
serd-0.32.6/src/serdi.c:296:12: branch_true: ...to here
serd-0.32.6/src/serdi.c:296:10: branch_false: following ‘false’ branch...
serd-0.32.6/src/serdi.c:300:31: branch_false: ...to here
serd-0.32.6/src/serdi.c:300:31: call_function: calling ‘serd_fopen’ from ‘main’
serd-0.32.6/src/serdi.c:300:31: return_function: returning to ‘main’ from ‘serd_fopen’
serd-0.32.6/src/serdi.c:300:11: branch_false: following ‘false’ branch...
serd-0.32.6/src/serdi.c:306:6: branch_false: ...to here
serd-0.32.6/src/serdi.c:306:6: branch_true: following ‘true’ branch (when ‘input_syntax == 0’)...
serd-0.32.6/src/serdi.c:306:41: branch_true: ...to here
serd-0.32.6/src/serdi.c:306:41: call_function: calling ‘guess_syntax’ from ‘main’
serd-0.32.6/src/serdi.c:306:41: return_function: returning to ‘main’ from ‘guess_syntax’
serd-0.32.6/src/serdi.c:306:7: branch_true: following ‘true’ branch...
serd-0.32.6/src/serdi.c:306:7: branch_true: ...to here
serd-0.32.6/src/serdi.c:310:6: branch_true: following ‘true’ branch (when ‘output_syntax == 0’)...
serd-0.32.6/src/serdi.c:312:8: branch_true: ...to here
serd-0.32.6/src/serdi.c:312:7: branch_false: following ‘false’ branch...
serd-0.32.6/src/serdi.c:312:7: branch_false: ...to here
serd-0.32.6/src/serdi.c:317:34: call_function: calling ‘choose_style’ from ‘main’
serd-0.32.6/src/serdi.c:317:34: return_function: returning to ‘main’ from ‘choose_style’
serd-0.32.6/src/serdi.c:322:6: branch_true: following ‘true’ branch (when ‘argc > a’)...
serd-0.32.6/src/serdi.c:324:57: branch_true: ...to here
serd-0.32.6/src/serdi.c:324:7: throw: if ‘serd_node_new_uri_from_string’ throws an exception...
serd-0.32.6/src/serdi.c:324:7: danger: ‘in_fd’ leaks here; was allocated at [(14)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def42]
serd-0.32.6/src/serdi.c:326:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘in_fd’
serd-0.32.6/src/serdi.c:178:1: enter_function: entry to ‘main’
serd-0.32.6/src/serdi.c:281:6: branch_false: following ‘false’ branch (when ‘a != argc’)...
serd-0.32.6/src/serdi.c:292:52: branch_false: ...to here
serd-0.32.6/src/serdi.c:293:6: branch_true: following ‘true’ branch (when ‘from_file != 0’)...
serd-0.32.6/src/serdi.c:294:15: branch_true: ...to here
serd-0.32.6/src/serdi.c:294:15: branch_false: following ‘false’ branch (when ‘in_name’ is NULL)...
serd-0.32.6/src/serdi.c:294:15: branch_false: ...to here
serd-0.32.6/src/serdi.c:295:8: branch_true: following ‘true’ branch (when ‘in_fd’ is NULL)...
serd-0.32.6/src/serdi.c:296:12: branch_true: ...to here
serd-0.32.6/src/serdi.c:296:10: branch_false: following ‘false’ branch...
serd-0.32.6/src/serdi.c:300:31: branch_false: ...to here
serd-0.32.6/src/serdi.c:300:31: call_function: calling ‘serd_fopen’ from ‘main’
serd-0.32.6/src/serdi.c:300:31: return_function: returning to ‘main’ from ‘serd_fopen’
serd-0.32.6/src/serdi.c:300:11: branch_false: following ‘false’ branch...
serd-0.32.6/src/serdi.c:306:6: branch_false: ...to here
serd-0.32.6/src/serdi.c:306:6: branch_true: following ‘true’ branch (when ‘input_syntax == 0’)...
serd-0.32.6/src/serdi.c:306:41: branch_true: ...to here
serd-0.32.6/src/serdi.c:306:41: call_function: calling ‘guess_syntax’ from ‘main’
serd-0.32.6/src/serdi.c:306:41: return_function: returning to ‘main’ from ‘guess_syntax’
serd-0.32.6/src/serdi.c:306:7: branch_true: following ‘true’ branch...
serd-0.32.6/src/serdi.c:306:7: branch_true: ...to here
serd-0.32.6/src/serdi.c:310:6: branch_true: following ‘true’ branch (when ‘output_syntax == 0’)...
serd-0.32.6/src/serdi.c:312:8: branch_true: ...to here
serd-0.32.6/src/serdi.c:312:7: branch_false: following ‘false’ branch...
serd-0.32.6/src/serdi.c:312:7: branch_false: ...to here
serd-0.32.6/src/serdi.c:317:34: call_function: calling ‘choose_style’ from ‘main’
serd-0.32.6/src/serdi.c:317:34: return_function: returning to ‘main’ from ‘choose_style’
serd-0.32.6/src/serdi.c:322:6: branch_false: following ‘false’ branch (when ‘argc <= a’)...
serd-0.32.6/src/serdi.c:325:13: branch_false: ...to here
serd-0.32.6/src/serdi.c:325:13: branch_true: following ‘true’ branch...
serd-0.32.6/src/serdi.c:326:12: throw: if ‘serd_node_new_file_uri’ throws an exception...
serd-0.32.6/src/serdi.c:326:12: danger: ‘in_fd’ leaks here; was opened at [(14)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
serd-0.32.6/src/serdi.c:326:12: warning[-Wanalyzer-malloc-leak]: leak of ‘in_fd’
serd-0.32.6/src/serdi.c:178:1: enter_function: entry to ‘main’
serd-0.32.6/src/serdi.c:281:6: branch_false: following ‘false’ branch (when ‘a != argc’)...
serd-0.32.6/src/serdi.c:292:52: branch_false: ...to here
serd-0.32.6/src/serdi.c:293:6: branch_true: following ‘true’ branch (when ‘from_file != 0’)...
serd-0.32.6/src/serdi.c:294:15: branch_true: ...to here
serd-0.32.6/src/serdi.c:294:15: branch_false: following ‘false’ branch (when ‘in_name’ is NULL)...
serd-0.32.6/src/serdi.c:294:15: branch_false: ...to here
serd-0.32.6/src/serdi.c:295:8: branch_true: following ‘true’ branch (when ‘in_fd’ is NULL)...
serd-0.32.6/src/serdi.c:296:12: branch_true: ...to here
serd-0.32.6/src/serdi.c:296:10: branch_false: following ‘false’ branch...
serd-0.32.6/src/serdi.c:300:31: branch_false: ...to here
serd-0.32.6/src/serdi.c:300:31: call_function: calling ‘serd_fopen’ from ‘main’
serd-0.32.6/src/serdi.c:300:31: return_function: returning to ‘main’ from ‘serd_fopen’
serd-0.32.6/src/serdi.c:300:11: branch_false: following ‘false’ branch...
serd-0.32.6/src/serdi.c:306:6: branch_false: ...to here
serd-0.32.6/src/serdi.c:306:6: branch_true: following ‘true’ branch (when ‘input_syntax == 0’)...
serd-0.32.6/src/serdi.c:306:41: branch_true: ...to here
serd-0.32.6/src/serdi.c:306:41: call_function: calling ‘guess_syntax’ from ‘main’
serd-0.32.6/src/serdi.c:306:41: return_function: returning to ‘main’ from ‘guess_syntax’
serd-0.32.6/src/serdi.c:306:7: branch_true: following ‘true’ branch...
serd-0.32.6/src/serdi.c:306:7: branch_true: ...to here
serd-0.32.6/src/serdi.c:310:6: branch_true: following ‘true’ branch (when ‘output_syntax == 0’)...
serd-0.32.6/src/serdi.c:312:8: branch_true: ...to here
serd-0.32.6/src/serdi.c:312:7: branch_false: following ‘false’ branch...
serd-0.32.6/src/serdi.c:312:7: branch_false: ...to here
serd-0.32.6/src/serdi.c:317:34: call_function: calling ‘choose_style’ from ‘main’
serd-0.32.6/src/serdi.c:317:34: return_function: returning to ‘main’ from ‘choose_style’
serd-0.32.6/src/serdi.c:322:6: branch_false: following ‘false’ branch (when ‘argc <= a’)...
serd-0.32.6/src/serdi.c:325:13: branch_false: ...to here
serd-0.32.6/src/serdi.c:325:13: branch_true: following ‘true’ branch...
serd-0.32.6/src/serdi.c:326:12: throw: if ‘serd_node_new_file_uri’ throws an exception...
serd-0.32.6/src/serdi.c:326:12: danger: ‘in_fd’ leaks here; was allocated at [(14)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
serd-0.32.6/src/stack.h:54:5: warning[-Wanalyzer-malloc-leak]: leak of ‘*reader.stack.buf’
serd-0.32.6/src/n3.c:195:1: enter_function: entry to ‘read_utf8_character’
serd-0.32.6/src/n3.c:201:5: call_function: calling ‘push_bytes’ from ‘read_utf8_character’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def45]
serd-0.32.6/src/uri.c:65:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*hostname’ where non-null expected
serd-0.32.6/src/uri.c:51:6: branch_true: following ‘true’ branch (when ‘hostname’ is non-NULL)...
serd-0.32.6/src/uri.c:52:5: branch_true: ...to here
serd-0.32.6/src/uri.c:54:6: branch_true: following ‘true’ branch...
serd-0.32.6/src/uri.c:55:20: branch_true: ...to here
serd-0.32.6/src/uri.c:56:8: branch_false: following ‘false’ branch...
serd-0.32.6/src/uri.c:59:36: branch_false: ...to here
serd-0.32.6/src/uri.c:59:10: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
serd-0.32.6/src/uri.c:63:10: branch_false: ...to here
serd-0.32.6/src/uri.c:63:10: branch_true: following ‘true’ branch (when ‘hostname’ is non-NULL)...
serd-0.32.6/src/uri.c:64:47: branch_true: ...to here
serd-0.32.6/src/uri.c:64:31: acquire_memory: this call could return NULL
serd-0.32.6/src/uri.c:65:9: danger: argument 1 (‘calloc((long unsigned int)(path - auth + 1), 1)’) from [(12)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/11) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def46]
serd-0.32.6/src/writer.c:1095: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: writer
Error: GCC_ANALYZER_WARNING (CWE-476): [#def47]
serd-0.32.6/src/writer.c:1095:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘writer’
serd-0.32.6/src/writer.c:1093:37: acquire_memory: this call could return NULL
serd-0.32.6/src/writer.c:1095:3: danger: ‘writer’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def48]
serd-0.32.6/src/writer.c:1096: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: writer
Error: CPPCHECK_WARNING (CWE-476): [#def49]
serd-0.32.6/src/writer.c:1097: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: writer
Error: CPPCHECK_WARNING (CWE-476): [#def50]
serd-0.32.6/src/writer.c:1098: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: writer
Error: CPPCHECK_WARNING (CWE-476): [#def51]
serd-0.32.6/src/writer.c:1099: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: writer
Error: CPPCHECK_WARNING (CWE-476): [#def52]
serd-0.32.6/src/writer.c:1100: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: writer
Error: CPPCHECK_WARNING (CWE-476): [#def53]
serd-0.32.6/src/writer.c:1101: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: writer
Error: CPPCHECK_WARNING (CWE-476): [#def54]
serd-0.32.6/src/writer.c:1102: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: writer
Error: GCC_ANALYZER_WARNING (CWE-688): [#def55]
serd-0.32.6/src/writer.c:1133:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*writer.bprefix’ where non-null expected
serd-0.32.6/src/writer.c:1129:29: branch_true: following ‘true’ branch (when ‘prefix’ is non-NULL)...
serd-0.32.6/src/writer.c:1129:38: branch_true: ...to here
serd-0.32.6/src/writer.c:1130:6: branch_true: following ‘true’ branch (when ‘prefix_len != 0’)...
serd-0.32.6/src/writer.c:1131:5: branch_true: ...to here
serd-0.32.6/src/writer.c:1132:37: acquire_memory: this call could return NULL
serd-0.32.6/src/writer.c:1133:5: danger: argument 1 (‘malloc(prefix_len + 1)’) from [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
serd-0.32.6/test/test_node.c:133:37: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
serd-0.32.6/test/test_node.c:126:25: branch_true: following ‘true’ branch (when ‘size != 256’)...
serd-0.32.6/test/test_node.c:127:37: branch_true: ...to here
serd-0.32.6/test/test_node.c:127:37: acquire_memory: allocated here
serd-0.32.6/test/test_node.c:128:5: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
serd-0.32.6/test/test_node.c:128:5: branch_false: ...to here
serd-0.32.6/test/test_node.c:129:24: branch_true: following ‘true’ branch (when ‘size > i’)...
serd-0.32.6/test/test_node.c:130:27: branch_true: ...to here
serd-0.32.6/test/test_node.c:129:24: branch_false: following ‘false’ branch (when ‘size <= i’)...
serd-0.32.6/test/test_node.c:133:68: branch_false: ...to here
serd-0.32.6/test/test_node.c:133:37: throw: if ‘serd_node_new_blob’ throws an exception...
serd-0.32.6/test/test_node.c:133:37: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
serd-0.32.6/test/test_node.c:142:17: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
serd-0.32.6/test/test_node.c:126:25: branch_true: following ‘true’ branch (when ‘size != 256’)...
serd-0.32.6/test/test_node.c:127:37: branch_true: ...to here
serd-0.32.6/test/test_node.c:127:37: acquire_memory: allocated here
serd-0.32.6/test/test_node.c:128:5: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
serd-0.32.6/test/test_node.c:128:5: branch_false: ...to here
serd-0.32.6/test/test_node.c:129:24: branch_true: following ‘true’ branch (when ‘size > i’)...
serd-0.32.6/test/test_node.c:130:27: branch_true: ...to here
serd-0.32.6/test/test_node.c:129:24: branch_false: following ‘false’ branch (when ‘size <= i’)...
serd-0.32.6/test/test_node.c:133:68: branch_false: ...to here
serd-0.32.6/test/test_node.c:136:5: branch_false: following ‘false’ branch (when ‘blob_str’ is non-NULL)...
serd-0.32.6/test/test_node.c:137:5: branch_false: ...to here
serd-0.32.6/test/test_node.c:137:5: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_node.c:138:5: branch_false: ...to here
serd-0.32.6/test/test_node.c:138:5: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_node.c:140:14: branch_false: ...to here
serd-0.32.6/test/test_node.c:142:17: throw: if ‘serd_base64_decode’ throws an exception...
serd-0.32.6/test/test_node.c:142:17: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
serd-0.32.6/test/test_node.c:149:5: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
serd-0.32.6/test/test_node.c:126:25: branch_true: following ‘true’ branch (when ‘size != 256’)...
serd-0.32.6/test/test_node.c:127:37: branch_true: ...to here
serd-0.32.6/test/test_node.c:127:37: acquire_memory: allocated here
serd-0.32.6/test/test_node.c:128:5: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
serd-0.32.6/test/test_node.c:128:5: branch_false: ...to here
serd-0.32.6/test/test_node.c:129:24: branch_true: following ‘true’ branch (when ‘size > i’)...
serd-0.32.6/test/test_node.c:130:27: branch_true: ...to here
serd-0.32.6/test/test_node.c:136:5: branch_false: following ‘false’ branch (when ‘blob_str’ is non-NULL)...
serd-0.32.6/test/test_node.c:137:5: branch_false: ...to here
serd-0.32.6/test/test_node.c:137:5: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_node.c:138:5: branch_false: ...to here
serd-0.32.6/test/test_node.c:138:5: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_node.c:140:14: branch_false: ...to here
serd-0.32.6/test/test_node.c:143:5: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_node.c:143:5: branch_false: ...to here
serd-0.32.6/test/test_node.c:145:24: branch_true: following ‘true’ branch (when ‘size > i’)...
serd-0.32.6/test/test_node.c:146:7: branch_true: ...to here
serd-0.32.6/test/test_node.c:146:7: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_node.c:145:34: branch_false: ...to here
serd-0.32.6/test/test_node.c:149:5: throw: if ‘serd_node_free’ throws an exception...
serd-0.32.6/test/test_node.c:149:5: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
serd-0.32.6/test/test_node.c:150:5: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
serd-0.32.6/test/test_node.c:126:25: branch_true: following ‘true’ branch (when ‘size != 256’)...
serd-0.32.6/test/test_node.c:127:37: branch_true: ...to here
serd-0.32.6/test/test_node.c:127:37: acquire_memory: allocated here
serd-0.32.6/test/test_node.c:128:5: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
serd-0.32.6/test/test_node.c:128:5: branch_false: ...to here
serd-0.32.6/test/test_node.c:129:24: branch_true: following ‘true’ branch (when ‘size > i’)...
serd-0.32.6/test/test_node.c:130:27: branch_true: ...to here
serd-0.32.6/test/test_node.c:136:5: branch_false: following ‘false’ branch (when ‘blob_str’ is non-NULL)...
serd-0.32.6/test/test_node.c:137:5: branch_false: ...to here
serd-0.32.6/test/test_node.c:137:5: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_node.c:138:5: branch_false: ...to here
serd-0.32.6/test/test_node.c:138:5: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_node.c:140:14: branch_false: ...to here
serd-0.32.6/test/test_node.c:143:5: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_node.c:143:5: branch_false: ...to here
serd-0.32.6/test/test_node.c:145:24: branch_true: following ‘true’ branch (when ‘size > i’)...
serd-0.32.6/test/test_node.c:146:7: branch_true: ...to here
serd-0.32.6/test/test_node.c:146:7: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_node.c:145:34: branch_false: ...to here
serd-0.32.6/test/test_node.c:150:5: throw: if ‘serd_free’ throws an exception...
serd-0.32.6/test/test_node.c:150:5: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def60]
serd-0.32.6/test/test_reader.c:180:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "w+b")’
serd-0.32.6/test/test_reader.c:176:19: acquire_resource: opened here
serd-0.32.6/test/test_reader.c:177:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:179:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:180:3: throw: if ‘fflush’ throws an exception...
serd-0.32.6/test/test_reader.c:180:3: danger: ‘fopen(path, "w+b")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
serd-0.32.6/test/test_reader.c:180:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "w+b")’
serd-0.32.6/test/test_reader.c:176:19: acquire_memory: allocated here
serd-0.32.6/test/test_reader.c:177:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:179:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:180:3: throw: if ‘fflush’ throws an exception...
serd-0.32.6/test/test_reader.c:180:3: danger: ‘fopen(path, "w+b")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def62]
serd-0.32.6/test/test_reader.c:181:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "w+b")’
serd-0.32.6/test/test_reader.c:176:19: acquire_resource: opened here
serd-0.32.6/test/test_reader.c:177:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:179:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:181:3: throw: if ‘fseek’ throws an exception...
serd-0.32.6/test/test_reader.c:181:3: danger: ‘fopen(path, "w+b")’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
serd-0.32.6/test/test_reader.c:181:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "w+b")’
serd-0.32.6/test/test_reader.c:176:19: acquire_memory: allocated here
serd-0.32.6/test/test_reader.c:177:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:179:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:181:3: throw: if ‘fseek’ throws an exception...
serd-0.32.6/test/test_reader.c:181:3: danger: ‘fopen(path, "w+b")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def64]
serd-0.32.6/test/test_reader.c:184:30: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "w+b")’
serd-0.32.6/test/test_reader.c:176:19: acquire_resource: opened here
serd-0.32.6/test/test_reader.c:177:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:179:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:184:30: throw: if ‘serd_reader_new’ throws an exception...
serd-0.32.6/test/test_reader.c:184:30: danger: ‘fopen(path, "w+b")’ leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
serd-0.32.6/test/test_reader.c:184:30: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "w+b")’
serd-0.32.6/test/test_reader.c:176:19: acquire_memory: allocated here
serd-0.32.6/test/test_reader.c:177:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:179:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:184:30: throw: if ‘serd_reader_new’ throws an exception...
serd-0.32.6/test/test_reader.c:184:30: danger: ‘fopen(path, "w+b")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def66]
serd-0.32.6/test/test_reader.c:187:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "w+b")’
serd-0.32.6/test/test_reader.c:176:19: acquire_resource: opened here
serd-0.32.6/test/test_reader.c:177:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:179:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:187:3: throw: if ‘fseek’ throws an exception...
serd-0.32.6/test/test_reader.c:187:3: danger: ‘fopen(path, "w+b")’ leaks here; was opened at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
serd-0.32.6/test/test_reader.c:187:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "w+b")’
serd-0.32.6/test/test_reader.c:176:19: acquire_memory: allocated here
serd-0.32.6/test/test_reader.c:177:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:179:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:187:3: throw: if ‘fseek’ throws an exception...
serd-0.32.6/test/test_reader.c:187:3: danger: ‘fopen(path, "w+b")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def68]
serd-0.32.6/test/test_reader.c:188:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "w+b")’
serd-0.32.6/test/test_reader.c:176:19: acquire_resource: opened here
serd-0.32.6/test/test_reader.c:177:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:179:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:188:3: throw: if ‘serd_reader_start_stream’ throws an exception...
serd-0.32.6/test/test_reader.c:188:3: danger: ‘fopen(path, "w+b")’ leaks here; was opened at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
serd-0.32.6/test/test_reader.c:188:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "w+b")’
serd-0.32.6/test/test_reader.c:176:19: acquire_memory: allocated here
serd-0.32.6/test/test_reader.c:177:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:179:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:188:3: throw: if ‘serd_reader_start_stream’ throws an exception...
serd-0.32.6/test/test_reader.c:188:3: danger: ‘fopen(path, "w+b")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def70]
serd-0.32.6/test/test_reader.c:254:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "w+b")’
serd-0.32.6/test/test_reader.c:235:19: acquire_resource: opened here
serd-0.32.6/test/test_reader.c:236:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:240:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:254:3: throw: if ‘fseek’ throws an exception...
serd-0.32.6/test/test_reader.c:254:3: danger: ‘fopen(path, "w+b")’ leaks here; was opened at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
serd-0.32.6/test/test_reader.c:254:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "w+b")’
serd-0.32.6/test/test_reader.c:235:19: acquire_memory: allocated here
serd-0.32.6/test/test_reader.c:236:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:240:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:254:3: throw: if ‘fseek’ throws an exception...
serd-0.32.6/test/test_reader.c:254:3: danger: ‘fopen(path, "w+b")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
serd-0.32.6/test/test_reader.c:254:3: warning[-Wanalyzer-malloc-leak]: leak of ‘path’
serd-0.32.6/test/test_reader.c:410:1: enter_function: entry to ‘main’
serd-0.32.6/test/test_reader.c:426:43: acquire_memory: allocated here
serd-0.32.6/test/test_reader.c:427:3: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
serd-0.32.6/test/test_reader.c:429:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:433:3: call_function: calling ‘test_read_nquads_chunks’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def73]
serd-0.32.6/test/test_reader.c:257:30: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "w+b")’
serd-0.32.6/test/test_reader.c:235:19: acquire_resource: opened here
serd-0.32.6/test/test_reader.c:236:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:240:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:257:30: throw: if ‘serd_reader_new’ throws an exception...
serd-0.32.6/test/test_reader.c:257:30: danger: ‘fopen(path, "w+b")’ leaks here; was opened at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
serd-0.32.6/test/test_reader.c:257:30: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "w+b")’
serd-0.32.6/test/test_reader.c:235:19: acquire_memory: allocated here
serd-0.32.6/test/test_reader.c:236:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:240:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:257:30: throw: if ‘serd_reader_new’ throws an exception...
serd-0.32.6/test/test_reader.c:257:30: danger: ‘fopen(path, "w+b")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
serd-0.32.6/test/test_reader.c:257:30: warning[-Wanalyzer-malloc-leak]: leak of ‘path’
serd-0.32.6/test/test_reader.c:410:1: enter_function: entry to ‘main’
serd-0.32.6/test/test_reader.c:426:43: acquire_memory: allocated here
serd-0.32.6/test/test_reader.c:427:3: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
serd-0.32.6/test/test_reader.c:429:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:433:3: call_function: calling ‘test_read_nquads_chunks’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def76]
serd-0.32.6/test/test_reader.c:264:19: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "w+b")’
serd-0.32.6/test/test_reader.c:235:19: acquire_resource: opened here
serd-0.32.6/test/test_reader.c:236:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:240:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:260:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:261:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:261:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:264:19: branch_false: ...to here
serd-0.32.6/test/test_reader.c:264:19: throw: if ‘serd_reader_start_source_stream’ throws an exception...
serd-0.32.6/test/test_reader.c:264:19: danger: ‘fopen(path, "w+b")’ leaks here; was opened at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
serd-0.32.6/test/test_reader.c:264:19: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "w+b")’
serd-0.32.6/test/test_reader.c:235:19: acquire_memory: allocated here
serd-0.32.6/test/test_reader.c:236:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:240:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:260:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:261:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:261:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:264:19: branch_false: ...to here
serd-0.32.6/test/test_reader.c:264:19: throw: if ‘serd_reader_start_source_stream’ throws an exception...
serd-0.32.6/test/test_reader.c:264:19: danger: ‘fopen(path, "w+b")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
serd-0.32.6/test/test_reader.c:264:19: warning[-Wanalyzer-malloc-leak]: leak of ‘path’
serd-0.32.6/test/test_reader.c:410:1: enter_function: entry to ‘main’
serd-0.32.6/test/test_reader.c:426:43: acquire_memory: allocated here
serd-0.32.6/test/test_reader.c:427:3: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
serd-0.32.6/test/test_reader.c:429:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:433:3: call_function: calling ‘test_read_nquads_chunks’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
serd-0.32.6/test/test_reader.c:270:8: warning[-Wanalyzer-malloc-leak]: leak of ‘path’
serd-0.32.6/test/test_reader.c:410:1: enter_function: entry to ‘main’
serd-0.32.6/test/test_reader.c:426:43: acquire_memory: allocated here
serd-0.32.6/test/test_reader.c:427:3: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
serd-0.32.6/test/test_reader.c:429:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:433:3: call_function: calling ‘test_read_nquads_chunks’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
serd-0.32.6/test/test_reader.c:278:8: warning[-Wanalyzer-malloc-leak]: leak of ‘path’
serd-0.32.6/test/test_reader.c:410:1: enter_function: entry to ‘main’
serd-0.32.6/test/test_reader.c:426:43: acquire_memory: allocated here
serd-0.32.6/test/test_reader.c:427:3: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
serd-0.32.6/test/test_reader.c:429:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:433:3: call_function: calling ‘test_read_nquads_chunks’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
serd-0.32.6/test/test_reader.c:286:8: warning[-Wanalyzer-malloc-leak]: leak of ‘path’
serd-0.32.6/test/test_reader.c:410:1: enter_function: entry to ‘main’
serd-0.32.6/test/test_reader.c:426:43: acquire_memory: allocated here
serd-0.32.6/test/test_reader.c:427:3: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
serd-0.32.6/test/test_reader.c:429:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:433:3: call_function: calling ‘test_read_nquads_chunks’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
serd-0.32.6/test/test_reader.c:294:8: warning[-Wanalyzer-malloc-leak]: leak of ‘path’
serd-0.32.6/test/test_reader.c:410:1: enter_function: entry to ‘main’
serd-0.32.6/test/test_reader.c:426:43: acquire_memory: allocated here
serd-0.32.6/test/test_reader.c:427:3: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
serd-0.32.6/test/test_reader.c:429:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:433:3: call_function: calling ‘test_read_nquads_chunks’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
serd-0.32.6/test/test_reader.c:302:8: warning[-Wanalyzer-malloc-leak]: leak of ‘path’
serd-0.32.6/test/test_reader.c:410:1: enter_function: entry to ‘main’
serd-0.32.6/test/test_reader.c:426:43: acquire_memory: allocated here
serd-0.32.6/test/test_reader.c:427:3: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
serd-0.32.6/test/test_reader.c:429:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:433:3: call_function: calling ‘test_read_nquads_chunks’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def84]
serd-0.32.6/test/test_reader.c:332:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "w+b")’
serd-0.32.6/test/test_reader.c:322:19: acquire_resource: opened here
serd-0.32.6/test/test_reader.c:323:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:326:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:332:3: throw: if ‘fseek’ throws an exception...
serd-0.32.6/test/test_reader.c:332:3: danger: ‘fopen(path, "w+b")’ leaks here; was opened at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
serd-0.32.6/test/test_reader.c:332:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "w+b")’
serd-0.32.6/test/test_reader.c:322:19: acquire_memory: allocated here
serd-0.32.6/test/test_reader.c:323:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:326:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:332:3: throw: if ‘fseek’ throws an exception...
serd-0.32.6/test/test_reader.c:332:3: danger: ‘fopen(path, "w+b")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def86]
serd-0.32.6/test/test_reader.c:335:30: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "w+b")’
serd-0.32.6/test/test_reader.c:322:19: acquire_resource: opened here
serd-0.32.6/test/test_reader.c:323:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:326:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:335:30: throw: if ‘serd_reader_new’ throws an exception...
serd-0.32.6/test/test_reader.c:335:30: danger: ‘fopen(path, "w+b")’ leaks here; was opened at [(1)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
serd-0.32.6/test/test_reader.c:335:30: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "w+b")’
serd-0.32.6/test/test_reader.c:322:19: acquire_memory: allocated here
serd-0.32.6/test/test_reader.c:323:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:326:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:335:30: throw: if ‘serd_reader_new’ throws an exception...
serd-0.32.6/test/test_reader.c:335:30: danger: ‘fopen(path, "w+b")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def88]
serd-0.32.6/test/test_reader.c:342:19: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "w+b")’
serd-0.32.6/test/test_reader.c:322:19: acquire_resource: opened here
serd-0.32.6/test/test_reader.c:323:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:326:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:338:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:339:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:339:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:342:19: branch_false: ...to here
serd-0.32.6/test/test_reader.c:342:19: throw: if ‘serd_reader_start_source_stream’ throws an exception...
serd-0.32.6/test/test_reader.c:342:19: danger: ‘fopen(path, "w+b")’ leaks here; was opened at [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
serd-0.32.6/test/test_reader.c:342:19: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "w+b")’
serd-0.32.6/test/test_reader.c:322:19: acquire_memory: allocated here
serd-0.32.6/test/test_reader.c:323:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:326:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:338:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:339:3: branch_false: ...to here
serd-0.32.6/test/test_reader.c:339:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader.c:342:19: branch_false: ...to here
serd-0.32.6/test/test_reader.c:342:19: throw: if ‘serd_reader_start_source_stream’ throws an exception...
serd-0.32.6/test/test_reader.c:342:19: danger: ‘fopen(path, "w+b")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
serd-0.32.6/test/test_reader_writer.c:114:27: warning[-Wanalyzer-malloc-leak]: leak of ‘path’
serd-0.32.6/test/test_reader_writer.c:294:1: enter_function: entry to ‘main’
serd-0.32.6/test/test_reader_writer.c:308:43: acquire_memory: allocated here
serd-0.32.6/test/test_reader_writer.c:309:3: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
serd-0.32.6/test/test_reader_writer.c:311:3: branch_false: ...to here
serd-0.32.6/test/test_reader_writer.c:315:3: call_function: calling ‘test_write_errors’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
serd-0.32.6/test/test_reader_writer.c:118:5: warning[-Wanalyzer-malloc-leak]: leak of ‘path’
serd-0.32.6/test/test_reader_writer.c:294:1: enter_function: entry to ‘main’
serd-0.32.6/test/test_reader_writer.c:308:43: acquire_memory: allocated here
serd-0.32.6/test/test_reader_writer.c:309:3: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
serd-0.32.6/test/test_reader_writer.c:311:3: branch_false: ...to here
serd-0.32.6/test/test_reader_writer.c:315:3: call_function: calling ‘test_write_errors’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
serd-0.32.6/test/test_reader_writer.c:122:5: warning[-Wanalyzer-malloc-leak]: leak of ‘path’
serd-0.32.6/test/test_reader_writer.c:294:1: enter_function: entry to ‘main’
serd-0.32.6/test/test_reader_writer.c:308:43: acquire_memory: allocated here
serd-0.32.6/test/test_reader_writer.c:309:3: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
serd-0.32.6/test/test_reader_writer.c:311:3: branch_false: ...to here
serd-0.32.6/test/test_reader_writer.c:315:3: call_function: calling ‘test_write_errors’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
serd-0.32.6/test/test_reader_writer.c:131:3: warning[-Wanalyzer-malloc-leak]: leak of ‘path’
serd-0.32.6/test/test_reader_writer.c:294:1: enter_function: entry to ‘main’
serd-0.32.6/test/test_reader_writer.c:308:43: acquire_memory: allocated here
serd-0.32.6/test/test_reader_writer.c:309:3: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
serd-0.32.6/test/test_reader_writer.c:311:3: branch_false: ...to here
serd-0.32.6/test/test_reader_writer.c:315:3: call_function: calling ‘test_write_errors’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
serd-0.32.6/test/test_reader_writer.c:132:3: warning[-Wanalyzer-malloc-leak]: leak of ‘path’
serd-0.32.6/test/test_reader_writer.c:294:1: enter_function: entry to ‘main’
serd-0.32.6/test/test_reader_writer.c:308:43: acquire_memory: allocated here
serd-0.32.6/test/test_reader_writer.c:309:3: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
serd-0.32.6/test/test_reader_writer.c:311:3: branch_false: ...to here
serd-0.32.6/test/test_reader_writer.c:315:3: call_function: calling ‘test_write_errors’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
serd-0.32.6/test/test_reader_writer.c:134:26: warning[-Wanalyzer-malloc-leak]: leak of ‘path’
serd-0.32.6/test/test_reader_writer.c:294:1: enter_function: entry to ‘main’
serd-0.32.6/test/test_reader_writer.c:308:43: acquire_memory: allocated here
serd-0.32.6/test/test_reader_writer.c:309:3: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
serd-0.32.6/test/test_reader_writer.c:311:3: branch_false: ...to here
serd-0.32.6/test/test_reader_writer.c:315:3: call_function: calling ‘test_write_errors’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
serd-0.32.6/test/test_reader_writer.c:135:26: warning[-Wanalyzer-malloc-leak]: leak of ‘path’
serd-0.32.6/test/test_reader_writer.c:294:1: enter_function: entry to ‘main’
serd-0.32.6/test/test_reader_writer.c:308:43: acquire_memory: allocated here
serd-0.32.6/test/test_reader_writer.c:309:3: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
serd-0.32.6/test/test_reader_writer.c:311:3: branch_false: ...to here
serd-0.32.6/test/test_reader_writer.c:315:3: call_function: calling ‘test_write_errors’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
serd-0.32.6/test/test_reader_writer.c:137:3: warning[-Wanalyzer-malloc-leak]: leak of ‘path’
serd-0.32.6/test/test_reader_writer.c:294:1: enter_function: entry to ‘main’
serd-0.32.6/test/test_reader_writer.c:308:43: acquire_memory: allocated here
serd-0.32.6/test/test_reader_writer.c:309:3: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
serd-0.32.6/test/test_reader_writer.c:311:3: branch_false: ...to here
serd-0.32.6/test/test_reader_writer.c:315:3: call_function: calling ‘test_write_errors’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def98]
serd-0.32.6/test/test_reader_writer.c:170:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "wb")’
serd-0.32.6/test/test_reader_writer.c:167:20: acquire_resource: opened here
serd-0.32.6/test/test_reader_writer.c:168:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader_writer.c:170:24: branch_false: ...to here
serd-0.32.6/test/test_reader_writer.c:170:24: throw: if ‘serd_env_new’ throws an exception...
serd-0.32.6/test/test_reader_writer.c:170:24: danger: ‘fopen(path, "wb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
serd-0.32.6/test/test_reader_writer.c:170:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "wb")’
serd-0.32.6/test/test_reader_writer.c:167:20: acquire_memory: allocated here
serd-0.32.6/test/test_reader_writer.c:168:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader_writer.c:170:24: branch_false: ...to here
serd-0.32.6/test/test_reader_writer.c:170:24: throw: if ‘serd_env_new’ throws an exception...
serd-0.32.6/test/test_reader_writer.c:170:24: danger: ‘fopen(path, "wb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def100]
serd-0.32.6/test/test_reader_writer.c:174:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "wb")’
serd-0.32.6/test/test_reader_writer.c:167:20: acquire_resource: opened here
serd-0.32.6/test/test_reader_writer.c:168:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader_writer.c:170:24: branch_false: ...to here
serd-0.32.6/test/test_reader_writer.c:171:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader_writer.c:174:5: branch_false: ...to here
serd-0.32.6/test/test_reader_writer.c:174:5: throw: if ‘serd_writer_new’ throws an exception...
serd-0.32.6/test/test_reader_writer.c:174:5: danger: ‘fopen(path, "wb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
serd-0.32.6/test/test_reader_writer.c:174:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "wb")’
serd-0.32.6/test/test_reader_writer.c:167:20: acquire_memory: allocated here
serd-0.32.6/test/test_reader_writer.c:168:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader_writer.c:170:24: branch_false: ...to here
serd-0.32.6/test/test_reader_writer.c:171:3: branch_false: following ‘false’ branch...
serd-0.32.6/test/test_reader_writer.c:174:5: branch_false: ...to here
serd-0.32.6/test/test_reader_writer.c:174:5: throw: if ‘serd_writer_new’ throws an exception...
serd-0.32.6/test/test_reader_writer.c:174:5: danger: ‘fopen(path, "wb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
serd-0.32.6/test/test_reader_writer.c:257:24: warning[-Wanalyzer-malloc-leak]: leak of ‘rt’
serd-0.32.6/test/test_reader_writer.c:254:39: acquire_memory: allocated here
serd-0.32.6/test/test_reader_writer.c:255:3: branch_false: following ‘false’ branch (when ‘rt’ is non-NULL)...
serd-0.32.6/test/test_reader_writer.c:257:24: branch_false: ...to here
serd-0.32.6/test/test_reader_writer.c:257:24: throw: if ‘serd_reader_new’ throws an exception...
serd-0.32.6/test/test_reader_writer.c:257:24: danger: ‘rt’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
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-181.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 | serd-0.32.6-1.fc44 |
| store-results-to | /tmp/tmpybpoyxi_/serd-0.32.6-1.fc44.tar.xz |
| time-created | 2026-01-08 21:45:17 |
| time-finished | 2026-01-08 21:46:47 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpybpoyxi_/serd-0.32.6-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpybpoyxi_/serd-0.32.6-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |