Task #92157 - fixed.err
back to task #92157download
Error: GCC_ANALYZER_WARNING (CWE-775):
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1161:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘out’
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1133:12: branch_false: following ‘false’ branch...
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1139:13: branch_false: ...to here
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1144:12: branch_true: following ‘true’ branch...
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1145:23: branch_true: ...to here
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1145:23: acquire_resource: opened here
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1146:20: branch_false: following ‘false’ branch...
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1157:15: branch_false: ...to here
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1157:16: branch_true: following ‘true’ branch (when ‘keep_reading != 0’)...
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1157:16: branch_true: ...to here
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1244:12: branch_false: following ‘false’ branch...
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1135:24: branch_false: ...to here
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1161:25: danger: ‘out’ leaks here; was opened at [(5)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/4)
# 1159| if (ret < 0) {
# 1160| fprintf(stderr, _("%s: failed read: %m\n"), dev);
# 1161|-> goto err;
# 1162| }
# 1163|
Error: GCC_ANALYZER_WARNING (CWE-401):
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1161:25: warning[-Wanalyzer-malloc-leak]: leak of ‘out’
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1133:12: branch_false: following ‘false’ branch...
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1139:13: branch_false: ...to here
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1144:12: branch_true: following ‘true’ branch...
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1145:23: branch_true: ...to here
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1145:23: acquire_memory: allocated here
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1146:20: branch_false: following ‘false’ branch...
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1157:15: branch_false: ...to here
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1157:16: branch_true: following ‘true’ branch (when ‘keep_reading != 0’)...
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1157:16: branch_true: ...to here
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1244:12: branch_false: following ‘false’ branch...
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1135:24: branch_false: ...to here
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1161:25: danger: ‘out’ leaks here; was allocated at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4)
# 1159| if (ret < 0) {
# 1160| fprintf(stderr, _("%s: failed read: %m\n"), dev);
# 1161|-> goto err;
# 1162| }
# 1163|
Error: GCC_ANALYZER_WARNING (CWE-775):
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1238:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘out’
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1133:12: branch_false: following ‘false’ branch...
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1139:13: branch_false: ...to here
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1144:12: branch_true: following ‘true’ branch...
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1145:23: branch_true: ...to here
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1145:23: acquire_resource: opened here
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1146:20: branch_false: following ‘false’ branch...
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1157:15: branch_false: ...to here
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1157:16: branch_true: following ‘true’ branch (when ‘keep_reading != 0’)...
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1157:16: branch_true: ...to here
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1159:20: branch_false: following ‘false’ branch...
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1164:20: branch_false: ...to here
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1164:20: branch_false: following ‘false’ branch...
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1170:31: branch_true: following ‘true’ branch...
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1171:40: branch_true: ...to here
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1238:25: throw: if ‘fflush’ throws an exception...
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1238:25: danger: ‘out’ leaks here; was opened at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
# 1236| }
# 1237|
# 1238|-> fflush(out);
# 1239| }
# 1240| }
Error: GCC_ANALYZER_WARNING (CWE-401):
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1238:25: warning[-Wanalyzer-malloc-leak]: leak of ‘out’
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1133:12: branch_false: following ‘false’ branch...
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1139:13: branch_false: ...to here
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1144:12: branch_true: following ‘true’ branch...
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1145:23: branch_true: ...to here
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1145:23: acquire_memory: allocated here
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1146:20: branch_false: following ‘false’ branch...
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1157:15: branch_false: ...to here
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1157:16: branch_true: following ‘true’ branch (when ‘keep_reading != 0’)...
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1157:16: branch_true: ...to here
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1159:20: branch_false: following ‘false’ branch...
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1164:20: branch_false: ...to here
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1164:20: branch_false: following ‘false’ branch...
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1170:31: branch_true: following ‘true’ branch...
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1171:40: branch_true: ...to here
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1238:25: throw: if ‘fflush’ throws an exception...
v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1238:25: danger: ‘out’ leaks here; was allocated at [(5)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/4)
# 1236| }
# 1237|
# 1238|-> fflush(out);
# 1239| }
# 1240| }