[Swan-dev] New Defects reported by Coverity Scan for antonyantony/libreswan

scan-admin at coverity.com scan-admin at coverity.com
Tue Nov 16 13:09:24 EET 2021


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 1510071:  Null pointer dereferences  (FORWARD_NULL)


________________________________________________________________________________________________________
*** CID 1510071:  Null pointer dereferences  (FORWARD_NULL)
/lib/libswan/ip_packet.c: 170 in pexpect_packet()
164     	     * An acquire triggered by a packet with no specified
165     	     * source port will have a zero source port.
166     	     */
167     	    (packet->protocol->endpoint_requires_non_zero_port && packet->dst.hport == 0)) {
168     		if (packet->is_set) {
169     			packet_buf b;
>>>     CID 1510071:  Null pointer dereferences  (FORWARD_NULL)
>>>     Passing "packet" to "str_packet", which dereferences null "packet->protocol".
170     			log_pexpect(where, "invalid packet: "PRI_PACKET,
171     				    pri_packet(packet, &b));
172     
173     		}
174     	} else if (!packet->is_set) {
175     		packet_buf b;
176     		log_pexpect(where, "invalid packet: "PRI_PACKET,
177     			    pri_packet(packet, &b));
178     	}


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yq8aBKViEpsZ9KPFMeJd7kKMDjyzu82COVFw1h1aYx-2FtFrefiPxkohPqZgI7DsTRPR5L954NuJuE0J6c4ee-2B5kYR2Pa_Cir5ZFqEb-2Fpy-2FZDdTxjwNXxDWd37ZfwlkdBT1REyQ3-2FbDRyCR-2Bv42h-2F2hdIQruF328-2B8oZ47mThXAUaQG1fEr74G3JsiAHfsSzSy6IRD-2BkpUqdcijYhHUFt6u2Tnd0EtJWbTqgKAEyxHwkcmZqhNQiHUNVVyaMRlF6g-2FrgB-2Bgdel4a8YcCyReRli21FnwsZLQekLSkdjRnkxYTIKLkYqYQVdPoOnla24Lj5Ub4o8NS0-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-2B13a9hJ7YOPZRdlHcEQfoMvDvjqsfrRNzFQ8lscduvXP5RLkPig71dIKudxi473K_Cir5ZFqEb-2Fpy-2FZDdTxjwNXxDWd37ZfwlkdBT1REyQ3-2FbDRyCR-2Bv42h-2F2hdIQruF328-2B8oZ47mThXAUaQG1fErz3e4miodK3XS-2BR3DkZNwLIyCExC8ke0cQPKo2vPHozy3sPkFIEfvkHnwEREKOteHlR5CBPacxj-2Bv3BNGVaDKOANUoCJ7SHkrBfLB-2B7E8W05OZFsBpfseOvQOtn1eOQ-2BpP8KZ8df5bUlxBovLYLtSLU-3D



More information about the Swan-dev mailing list