[Swan-dev] New Defects reported by Coverity Scan for antonyantony/libreswan
scan-admin at coverity.com
scan-admin at coverity.com
Sun Nov 27 01:51:02 EET 2022
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 1527608: Null pointer dereferences (FORWARD_NULL)
/programs/pluto/kernel_xfrm.c: 678 in xfrm_raw_policy()
________________________________________________________________________________________________________
*** CID 1527608: Null pointer dereferences (FORWARD_NULL)
/programs/pluto/kernel_xfrm.c: 678 in xfrm_raw_policy()
672 */
673 req.u.p.dir = xfrm_dir;
674 req.n.nlmsg_type = XFRM_MSG_UPDPOLICY;
675 req.n.nlmsg_len = NLMSG_ALIGN(NLMSG_LENGTH(sizeof(req.u.p)));
676
677 /* The caller should have set the proper priority by now */
>>> CID 1527608: Null pointer dereferences (FORWARD_NULL)
>>> Dereferencing null pointer "kernel_policy".
678 req.u.p.priority = kernel_policy->priority.value;
679 dbg("%s() IPsec SA SPD priority set to %d", __func__, req.u.p.priority);
680
681 req.u.p.action = xfrm_action;
682 /* req.u.p.lft.soft_use_expires_seconds = deltasecs(use_lifetime); */
683 req.u.p.lft.soft_byte_limit = XFRM_INF;
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yq8aBKViEpsZ9KPFMeJd7kKMDjyzu82COVFw1h1aYx-2FtFrefiPxkohPqZgI7DsTRPR5L954NuJuE0J6c4ee-2B5kYjmNe_Cir5ZFqEb-2Fpy-2FZDdTxjwNXxDWd37ZfwlkdBT1REyQ3-2F07ascZkPL3TB5n5gWPfQJ9FVPrUdersI1xseA4oEjD1RYG2xPJUMlYpik839tpBpvmLsfPAewPejKww15A7rf-2FGLHPBGOhmHl0USw6ZHS7yrE-2B-2BEuTEdjJPD42nwnQN7uH4Y91JUjTdurRSDDcQ7dG2iWBFmvTp2u2RAU-2FAr0l9G-2F0R4bBBcuBADn2PKtplE-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-2B13a9hJ7YOPZRdlHcEQfoMvDvjqsfrRNzFQ8lscduvXP5RLkPig71dIKudxi372h_Cir5ZFqEb-2Fpy-2FZDdTxjwNXxDWd37ZfwlkdBT1REyQ3-2F07ascZkPL3TB5n5gWPfQJ9FVPrUdersI1xseA4oEjDyFnjpIFx56QgP-2Fu2KyiEd7avzGZ05F9YWYnzaEGR4kClDksWNnff-2FR4Yl8uxU6EUv6cuFRIymt9-2FysE0lgOB9j7hMJEub-2BBTE2SEv-2Fw6vHvPL3ttGPUXA-2BGluATISANlI-2BVGcgXBK5L41698mRE5MU-3D
More information about the Swan-dev
mailing list