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 1423308: Control flow issues (DEADCODE)
/home/covbuilder/pike/Pike-v8.1-snapshot/src/las.c: 1632 in resolv_type()
________________________________________________________________________________________________________
*** CID 1423308: Control flow issues (DEADCODE)
/home/covbuilder/pike/Pike-v8.1-snapshot/src/las.c: 1632 in resolv_type()
1626 }
1627 }
1628
1629 switch(TYPEOF(Pike_sp[-1])) {
1630 case T_FUNCTION:
1631 if((p = program_from_function(Pike_sp-1))) {
>>> CID 1423308: Control flow issues (DEADCODE)
>>> Execution cannot reach the expression "0" inside this statement: "debug_push_object_type(0, (...".
1632 push_object_type(0, p?(p->id):0);
1633 break;
1634 } else {
1635 /* Attempt to get the return type for the function. */
1636 struct pike_type *a, *b;
1637 a = get_type_of_svalue(Pike_sp-1);
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V0…
To manage Coverity Scan email notifications for "pike-automation(a)lists.lysator.liu.se", click 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 1419034: Uninitialized variables (UNINIT)
/home/covbuilder/pike/Pike-v8.1-snapshot/src/code/amd64.c: 2809 in ins_f_byte()
________________________________________________________________________________________________________
*** CID 1419034: Uninitialized variables (UNINIT)
/home/covbuilder/pike/Pike-v8.1-snapshot/src/code/amd64.c: 2809 in ins_f_byte()
2803 #endif /* MACHINE_CODE_STACK_FRAMES */
2804 }
2805
2806 amd64_call_c_opcode(addr,flags);
2807
2808 if (instrs[b].flags & I_RETURN) {
>>> CID 1419034: Uninitialized variables (UNINIT)
>>> Declaring variable "label_C" without initializer.
2809 LABELS();
2810
2811 if ((b + F_OFFSET) == F_RETURN_IF_TRUE) {
2812 /* Kludge. We must check if the ret addr is
2813 * PC + JUMP_EPILOGUE_SIZE. */
2814 mov_rip_imm_reg(JUMP_EPILOGUE_SIZE, P_REG_RCX);
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V0…
To manage Coverity Scan email notifications for "pike-automation(a)lists.lysator.liu.se", click 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-stable found with Coverity Scan.
1 new defect(s) introduced to Pike-stable found with Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 1414703: Memory - corruptions (ARRAY_VS_SINGLETON)
/home/covbuilder/pike/Pike-v8.0-snapshot/src/post_modules/SQLite/sqlite.cmod: 135 in bind_arguments()
________________________________________________________________________________________________________
*** CID 1414703: Memory - corruptions (ARRAY_VS_SINGLETON)
/home/covbuilder/pike/Pike-v8.0-snapshot/src/post_modules/SQLite/sqlite.cmod: 135 in bind_arguments()
129
130 case T_MULTISET:
131 if(multiset_sizeof(k->val.u.multiset) == 1) {
132 struct pike_string *s;
133 {
134 struct svalue tmp;
>>> CID 1414703: Memory - corruptions (ARRAY_VS_SINGLETON)
>>> Using "&k->val.u.multiset->msd->nodes->i" as an array. This might corrupt or misinterpret adjacent memory locations.
135 if (TYPEOF(*use_multiset_index (k->val.u.multiset,
136 multiset_first (k->val.u.multiset),
137 tmp)) == T_STRING)
138 s = tmp.u.string;
139 else
140 s = NULL;
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V0…
To manage Coverity Scan email notifications for "pike-automation(a)lists.lysator.liu.se", click 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 1414685: Memory - illegal accesses (NEGATIVE_RETURNS)
/home/covbuilder/pike/Pike-v8.1-snapshot/src/post_modules/SQLite/sqlite.cmod: 131 in bind_arguments()
________________________________________________________________________________________________________
*** CID 1414685: Memory - illegal accesses (NEGATIVE_RETURNS)
/home/covbuilder/pike/Pike-v8.1-snapshot/src/post_modules/SQLite/sqlite.cmod: 131 in bind_arguments()
125 break;
126 case T_MULTISET:
127 if(multiset_sizeof(k->val.u.multiset) == 1) {
128 struct pike_string *s;
129 {
130 struct svalue tmp;
>>> CID 1414685: Memory - illegal accesses (NEGATIVE_RETURNS)
>>> Using variable "multiset_first(k->val.u.multiset)" as an index to array "k->val.u.multiset->msd->nodes".
131 if (TYPEOF(*use_multiset_index (k->val.u.multiset,
132 multiset_first (k->val.u.multiset),
133 tmp)) == T_STRING)
134 s = tmp.u.string;
135 else
136 s = NULL;
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V0…
To manage Coverity Scan email notifications for "pike-automation(a)lists.lysator.liu.se", click 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-experiment found with Coverity Scan.
2 new defect(s) introduced to Pike-experiment found with Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 2 of 2 defect(s)
** CID 1401352: (FORWARD_NULL)
/home/covbuilder/pike/pike-git/src/builtin.cmod: 4462 in low_automap()
/home/covbuilder/pike/pike-git/src/builtin.cmod: 4462 in low_automap()
________________________________________________________________________________________________________
*** CID 1401352: (FORWARD_NULL)
/home/covbuilder/pike/pike-git/src/builtin.cmod: 4462 in low_automap()
4456 callsite_set_args(&C, 0);
4457 callsite_resolve_svalue(&C, fun);
4458 callsite_prepare(&C);
4459 /* We need to do this manually, because
4460 * currently no arguments are on the stack, yet */
4461 C.args = args;
>>> CID 1401352: (FORWARD_NULL)
>>> Comparing "C.frame" to null implies that "C.frame" might be null.
4462 if (C.frame) {
4463 C.frame->args = args;
4464 C.frame->flags |= PIKE_FRAME_NO_REUSE;
4465 }
4466
4467 for(x=0;x<size;x++)
/home/covbuilder/pike/pike-git/src/builtin.cmod: 4462 in low_automap()
4456 callsite_set_args(&C, 0);
4457 callsite_resolve_svalue(&C, fun);
4458 callsite_prepare(&C);
4459 /* We need to do this manually, because
4460 * currently no arguments are on the stack, yet */
4461 C.args = args;
>>> CID 1401352: (FORWARD_NULL)
>>> Comparing "C.frame" to null implies that "C.frame" might be null.
4462 if (C.frame) {
4463 C.frame->args = args;
4464 C.frame->flags |= PIKE_FRAME_NO_REUSE;
4465 }
4466
4467 for(x=0;x<size;x++)
** CID 1400860: (FORWARD_NULL)
/home/covbuilder/pike/pike-git/src/builtin_functions.c: 8543 in f_map()
/home/covbuilder/pike/pike-git/src/builtin_functions.c: 8543 in f_map()
________________________________________________________________________________________________________
*** CID 1400860: (FORWARD_NULL)
/home/covbuilder/pike/pike-git/src/builtin_functions.c: 8543 in f_map()
8537 callsite_resolve_svalue(&C, mysp-2);
8538 callsite_prepare(&C);
8539
8540 /* We need to do this manually, because
8541 * currently no arguments are on the stack, yet */
8542 C.args = 1+splice;
>>> CID 1400860: (FORWARD_NULL)
>>> Comparing "C.frame" to null implies that "C.frame" might be null.
8543 if (C.frame) {
8544 C.frame->args = 1+splice;
8545 C.frame->flags |= PIKE_FRAME_NO_REUSE;
8546 }
8547
8548 for (i=0; i<n; i++)
/home/covbuilder/pike/pike-git/src/builtin_functions.c: 8543 in f_map()
8537 callsite_resolve_svalue(&C, mysp-2);
8538 callsite_prepare(&C);
8539
8540 /* We need to do this manually, because
8541 * currently no arguments are on the stack, yet */
8542 C.args = 1+splice;
>>> CID 1400860: (FORWARD_NULL)
>>> Comparing "C.frame" to null implies that "C.frame" might be null.
8543 if (C.frame) {
8544 C.frame->args = 1+splice;
8545 C.frame->flags |= PIKE_FRAME_NO_REUSE;
8546 }
8547
8548 for (i=0; i<n; i++)
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V0…
To manage Coverity Scan email notifications for "pike-automation(a)lists.lysator.liu.se", click 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-experiment found with Coverity Scan.
1 new defect(s) introduced to Pike-experiment found with Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 1401352: (FORWARD_NULL)
/home/covbuilder/pike/pike-git/src/builtin.cmod: 4462 in low_automap()
/home/covbuilder/pike/pike-git/src/builtin.cmod: 4484 in low_automap()
________________________________________________________________________________________________________
*** CID 1401352: (FORWARD_NULL)
/home/covbuilder/pike/pike-git/src/builtin.cmod: 4462 in low_automap()
4456 callsite_set_args(&C, 0);
4457 callsite_resolve_svalue(&C, fun);
4458 callsite_prepare(&C);
4459 /* We need to do this manually, because
4460 * currently no arguments are on the stack, yet */
4461 C.args = args;
>>> CID 1401352: (FORWARD_NULL)
>>> Comparing "C.frame" to null implies that "C.frame" might be null.
4462 if (C.frame) C.frame->args = args;
4463
4464 for(x=0;x<size;x++)
4465 {
4466 for(e=0;e<args;e++)
4467 {
/home/covbuilder/pike/pike-git/src/builtin.cmod: 4484 in low_automap()
4478 push_svalue(tmpargs+e);
4479 }
4480 }
4481
4482 if (x) callsite_reset(&C);
4483 callsite_execute(&C);
>>> CID 1401352: (FORWARD_NULL)
>>> Although "callsite_return" does overwrite "C.frame" on some paths, it also contains at least one feasible path which does not overwrite it.
4484 callsite_return(&C);
4485 stack_pop_to_no_free (ITEM(ret) + x);
4486 types |= 1 << TYPEOF(ITEM(ret)[x]);
4487 }
4488 callsite_free(&C);
4489 }
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V0…
To manage Coverity Scan email notifications for "pike-automation(a)lists.lysator.liu.se", click https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V0…