[Swan-dev] New Defects reported by Coverity Scan for antonyantony/libreswan
scan-admin at coverity.com
scan-admin at coverity.com
Wed Feb 15 13:51:23 EET 2023
Hi,
Please find the latest report on new defect(s) introduced to antonyantony/libreswan found with Coverity Scan.
1 new defect(s) introduced to antonyantony/libreswan found with Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 1534509: Integer handling issues (CONSTANT_EXPRESSION_RESULT)
/programs/pluto/routing.c: 518 in permanent_event_handler()
________________________________________________________________________________________________________
*** CID 1534509: Integer handling issues (CONSTANT_EXPRESSION_RESULT)
/programs/pluto/routing.c: 518 in permanent_event_handler()
512 }
513 bad_case(e->event);
514
515 case RT_ROUTED_NEGOTIATION:
516 switch (e->event) {
517 case CONNECTION_ROUTE:
>>> CID 1534509: Integer handling issues (CONSTANT_EXPRESSION_RESULT)
>>> "c->policy |= 32768UL /* (lset_t)1 << POLICY_ROUTE_IX */" is always true regardless of the values of its operands. This occurs as an initializer.
518 pexpect(c->policy |= POLICY_ROUTE);
519 llog(RC_LOG_SERIOUS, c->logger, "connection already routed");
520 return;
521 case CONNECTION_UNROUTE:
522 delete_connection_kernel_policies(c);
523 /* do now so route_owner won't find us */
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yq8aBKViEpsZ9KPFMeJd7kKMDjyzu82COVFw1h1aYx-2FtFrefiPxkohPqZgI7DsTRPR5L954NuJuE0J6c4ee-2B5kYMeyw_Cir5ZFqEb-2Fpy-2FZDdTxjwNXxDWd37ZfwlkdBT1REyQ39eJw5JHOthKha6-2FTo-2Fm7yW431QBqDkswB2k4X1ejIDBTuSr7T5aBCi49M-2BT52qSJQeQ8-2By8myslmppDZj8-2F6igppJAnnjzR50e1jGY609GlLQKIAEhgYYD2oy0OlJ6lQCEFXzNpL-2B-2Fn1-2BCxmCgjTih1WjVjFlYLNT7zJrCId6iaJlM8WAiCwX7sa9CrYJTOOs-3D
To manage Coverity Scan email notifications for "swan-dev at lists.libreswan.org", click https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yped04pjJnmXOsUBtKYNIXxUzCfl-2FUi6sRJtnGH1-2FWXEIl9xkb2JliKiAkqgdujeIgWYvUCIHO1g-2Ba8I-2B0nANYHmrw9-2B13a9hJ7YOPZRdlHcEQfoMvDvjqsfrRNzFQ8lscduvXP5RLkPig71dIKudxiM_Hx_Cir5ZFqEb-2Fpy-2FZDdTxjwNXxDWd37ZfwlkdBT1REyQ39eJw5JHOthKha6-2FTo-2Fm7yW431QBqDkswB2k4X1ejIDBa-2BadSdMAyNrHeGzRR4PbBx5YW8jDzMLD1XlyElW-2F5CpOnQ-2BE8duZ1iGXjXoEIjyOpVDSkI-2FZzYAaDxvu4CReVQ8sOy0futx2iD-2BNiAgVGAsVcghWX-2FYFhcK77H1H9yWB4E61HT72F-2BFsdes74ZvLUE-3D
More information about the Swan-dev
mailing list