Hi,
Please find the latest report on new defect(s) introduced to Pike-master found with Coverity Scan.
1 new defect(s) introduced to Pike-master found with Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 1452817: Resource leaks (RESOURCE_LEAK)
/home/covbuilder/pike/Pike-v8.1-snapshot/src/docode.c: 3128 in do_code_block()
________________________________________________________________________________________________________
*** CID 1452817: Resource leaks (RESOURCE_LEAK)
/home/covbuilder/pike/Pike-v8.1-snapshot/src/docode.c: 3128 in do_code_block()
3122 DO_CODE_BLOCK(n);
3123 }
3124 entry_point = assemble(1);
3125
3126 current_stack_depth = save_stack_depth;
3127 label_no = save_label_no;
>>> CID 1452817: Resource leaks (RESOURCE_LEAK)
>>> Variable "generator_jumptable" going out of scope leaks the storage it points to.
3128 return entry_point;
3129 }
3130
3131 /* Used by eval_low() to build code for constant expressions. */
3132 INT32 docode(node *n)
3133 {
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V0…
Hi,
Please find the latest report on new defect(s) introduced to Pike-master found with Coverity Scan.
1 new defect(s) introduced to Pike-master found with Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 1441424: Control flow issues (UNEXPECTED_CONTROL_FLOW)
/home/covbuilder/pike/Pike-v8.1-snapshot/src/program.c: 5187 in lower_inherit()
________________________________________________________________________________________________________
*** CID 1441424: Control flow issues (UNEXPECTED_CONTROL_FLOW)
/home/covbuilder/pike/Pike-v8.1-snapshot/src/program.c: 5187 in lower_inherit()
5181
5182 /* Restore annotations (if any) to and from the inherited program. */
5183 do {
5184 struct inherit *src_inh = p->inherits;
5185 struct inherit *dst_inh =
5186 Pike_compiler->new_program->inherits + inherit_offset;
>>> CID 1441424: Control flow issues (UNEXPECTED_CONTROL_FLOW)
>>> A continue statement within a do-while loop only continues execution of the loop body if the loop continuation condition is still true. Since the condition will never be true in a "do ... while (false);" loop the continue statement has the same effect as a break statement. Did you intend execution to continue at the top of the loop?
5187 if (!src_inh->annotations) continue;
5188
5189 dst_inh->annotations = copy_array(src_inh->annotations);
5190 } while(0);
5191
5192 if (Pike_compiler->compiler_pass == COMPILER_PASS_EXTRA) {
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V0…