Task #92113 - added.err

back to task #92113
download
Error: GCC_ANALYZER_WARNING (CWE-688):
sscg-sscg-4.0.3/src/io_utils.c:176:9: warning[-Wanalyzer-null-argument]: use of NULL ‘fp’ where non-null expected
sscg-sscg-4.0.3/src/io_utils.c:361:1: enter_function: entry to ‘sscg_io_utils_add_output_key’
sscg-sscg-4.0.3/src/io_utils.c:372:9: release_memory: ‘fp’ is NULL
sscg-sscg-4.0.3/src/io_utils.c:375:6: branch_false: following ‘false’ branch...
sscg-sscg-4.0.3/src/io_utils.c:384:6: branch_false: ...to here
sscg-sscg-4.0.3/src/io_utils.c:384:6: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
sscg-sscg-4.0.3/src/io_utils.c:408:13: branch_false: ...to here
sscg-sscg-4.0.3/src/io_utils.c:409:3: branch_false: following ‘false’ branch...
sscg-sscg-4.0.3/src/io_utils.c:411:3: branch_false: ...to here
sscg-sscg-4.0.3/src/io_utils.c:419:9: call_function: calling ‘sscg_io_utils_open_file’ from ‘sscg_io_utils_add_output_key’
sscg-sscg-4.0.3/src/io_utils.c:419:9: return_function: returning to ‘sscg_io_utils_add_output_key’ from ‘sscg_io_utils_open_file’
sscg-sscg-4.0.3/src/io_utils.c:420:3: branch_false: following ‘false’ branch...
sscg-sscg-4.0.3/src/io_utils.c:423:12: branch_false: ...to here
sscg-sscg-4.0.3/src/io_utils.c:423:12: release_memory: ‘fp’ is NULL
sscg-sscg-4.0.3/src/io_utils.c:423:12: call_function: calling ‘sscg_io_utils_get_stream_by_fp’ from ‘sscg_io_utils_add_output_key’
#  174|     int ret = 0;
#  175|   
#  176|->   ret = fstat (fileno (fp), &st);
#  177|     if (ret != 0)
#  178|       {