Task #92207 - fixed.err

back to task #92207
download
Error: GCC_ANALYZER_WARNING (CWE-775):
xz-5.8.1/src/xzdec/xzdec.c:356:23: warning[-Wanalyzer-file-leak]: leak of FILE ‘src_file’
xz-5.8.1/src/xzdec/xzdec.c:385:1: enter_function: entry to ‘main’
xz-5.8.1/src/xzdec/xzdec.c:439:12: branch_false: following ‘false’ branch...
xz-5.8.1/src/xzdec/xzdec.c:439:12: branch_false: ...to here
xz-5.8.1/src/xzdec/xzdec.c:452:28: branch_false: following ‘false’ branch (when the strings are non-equal)...
xz-5.8.1/src/xzdec/xzdec.c:457:44: branch_false: ...to here
xz-5.8.1/src/xzdec/xzdec.c:457:44: acquire_resource: opened here
xz-5.8.1/src/xzdec/xzdec.c:458:36: branch_false: following ‘false’ branch...
xz-5.8.1/src/xzdec/xzdec.c:472:39: branch_false: ...to here
xz-5.8.1/src/xzdec/xzdec.c:472:28: branch_true: following ‘true’ branch...
xz-5.8.1/src/xzdec/xzdec.c:473:33: branch_true: ...to here
xz-5.8.1/src/xzdec/xzdec.c:473:33: call_function: calling ‘sandbox_enter’ from ‘main’
#  354|   			goto error;
#  355|   
#  356|-> 		(void)close(ruleset_fd);
#  357|   	}
#  358|   

Error: GCC_ANALYZER_WARNING (CWE-401):
xz-5.8.1/src/xzdec/xzdec.c:356:23: warning[-Wanalyzer-malloc-leak]: leak of ‘src_file’
xz-5.8.1/src/xzdec/xzdec.c:385:1: enter_function: entry to ‘main’
xz-5.8.1/src/xzdec/xzdec.c:439:12: branch_false: following ‘false’ branch...
xz-5.8.1/src/xzdec/xzdec.c:439:12: branch_false: ...to here
xz-5.8.1/src/xzdec/xzdec.c:452:28: branch_false: following ‘false’ branch (when the strings are non-equal)...
xz-5.8.1/src/xzdec/xzdec.c:457:44: branch_false: ...to here
xz-5.8.1/src/xzdec/xzdec.c:457:44: acquire_memory: allocated here
xz-5.8.1/src/xzdec/xzdec.c:458:36: branch_false: following ‘false’ branch...
xz-5.8.1/src/xzdec/xzdec.c:472:39: branch_false: ...to here
xz-5.8.1/src/xzdec/xzdec.c:472:28: branch_true: following ‘true’ branch...
xz-5.8.1/src/xzdec/xzdec.c:473:33: branch_true: ...to here
xz-5.8.1/src/xzdec/xzdec.c:473:33: call_function: calling ‘sandbox_enter’ from ‘main’
#  354|   			goto error;
#  355|   
#  356|-> 		(void)close(ruleset_fd);
#  357|   	}
#  358|