[Swan-dev] Fwd: New Defects reported by Coverity Scan for antonyantony/libreswan
Antony Antony
antony at phenome.org
Thu Sep 27 09:52:36 UTC 2018
regards,
-antony
Begin forwarded message:
> From: scan-admin at coverity.com
> Date: September 27, 2018 at 10:10:29 GMT+2
> To: antony at phenome.org
> Subject: New Defects reported by Coverity Scan for antonyantony/libreswan
>
> 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 1473687: Control flow issues (DEADCODE)
> /programs/pluto/ikev2_spdb_struct.c: 1267 in emit_transform()
>
>
> ________________________________________________________________________________________________________
> *** CID 1473687: Control flow issues (DEADCODE)
> /programs/pluto/ikev2_spdb_struct.c: 1267 in emit_transform()
> 1261 if (!v2_out_attr_fixed(IKEv2_KEY_LENGTH, transform->attr_keylen, &trans_pbs)) {
> 1262 return false;
> 1263 }
> 1264 }
> 1265 } else {
> 1266 switch (impair_key_length_attribute) {
>>>> CID 1473687: Control flow issues (DEADCODE)
>>>> Execution cannot reach this statement: "case SEND_NORMAL:".
> 1267 case SEND_NORMAL:
> 1268 PASSERT_FAIL("%s", "should have been handled");
> 1269 break;
> 1270 case SEND_EMPTY:
> 1271 libreswan_log("IMPAIR: emitting variable-size key-length attribute with no key");
> 1272 if (!v2_out_attr_variable(IKEv2_KEY_LENGTH, empty_chunk, &trans_pbs)) {
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.libreswan.org/pipermail/swan-dev/attachments/20180927/f1b1f1f0/attachment-0001.html>
More information about the Swan-dev
mailing list