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

scan-admin at coverity.com scan-admin at coverity.com
Sun Nov 6 01:50:57 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 1527155:    (CHECKED_RETURN)
/lib/libswan/shunk.c: 201 in shunk_to_uintmax()
/lib/libswan/shunk.c: 194 in shunk_to_uintmax()


________________________________________________________________________________________________________
*** CID 1527155:    (CHECKED_RETURN)
/lib/libswan/shunk.c: 201 in shunk_to_uintmax()
195     				base = 16;
196     			} else {
197     				base = 10;
198     			}
199     		} else if (hunk_strcasestarteq(input, "0b")) {
200     			if (char_isbdigit(hunk_char(input, 2))) {
>>>     CID 1527155:    (CHECKED_RETURN)
>>>     Calling "shunk_strcaseeat" without checking return value (as is done elsewhere 10 out of 12 times).
201     				shunk_strcaseeat(&input, "0b");
202     				base = 2;
203     			} else {
204     				base = 10;
205     			}
206     		} else if (hunk_char(input, 0) == '0') {
/lib/libswan/shunk.c: 194 in shunk_to_uintmax()
188     	 * returned.
189     	 */
190     	unsigned base;
191     	if (draft_base == 0) {
192     		if (hunk_strcasestarteq(input, "0x")) {
193     			if (char_isxdigit(hunk_char(input, 2))) {
>>>     CID 1527155:    (CHECKED_RETURN)
>>>     Calling "shunk_strcaseeat" without checking return value (as is done elsewhere 10 out of 12 times).
194     				shunk_strcaseeat(&input, "0x");
195     				base = 16;
196     			} else {
197     				base = 10;
198     			}
199     		} else if (hunk_strcasestarteq(input, "0b")) {


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yq8aBKViEpsZ9KPFMeJd7kKMDjyzu82COVFw1h1aYx-2FtFrefiPxkohPqZgI7DsTRPR5L954NuJuE0J6c4ee-2B5kYI6lZ_Cir5ZFqEb-2Fpy-2FZDdTxjwNXxDWd37ZfwlkdBT1REyQ38GpzPuuRZYTrcr4jz7Yv9gkR-2FiNFfh7PaxNq95474IvvD7w5WeBYrt914y3cHZtoRKlN5ALuM6wSVYjr-2FAc1joTjNYQ9U4CvzCTJjJnwSFLUQkbtLzH-2FRIl-2BZtMKLN4JDdEYZv7S98zg16zywNlm2c68kdrQP3klPG6S878KjuXBuph-2FL9c6Zn38deckM2eak-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-2B13a9hJ7YOPZRdlHcEQfoMvDvjqsfrRNzFQ8lscduvXP5RLkPig71dIKudxibyle_Cir5ZFqEb-2Fpy-2FZDdTxjwNXxDWd37ZfwlkdBT1REyQ38GpzPuuRZYTrcr4jz7Yv9gkR-2FiNFfh7PaxNq95474Ivrbfa23i-2FseOYFC5ci1W1akCbTqU7F8zJMVGp-2BveteZsUxNw29orHKbN3j0chHS-2BBNF6mp7UdwOHfLkBkfjOfoFSlNAFT1uSv3QWPZ0K5aX41OzJhHuWtbJHXNWwAuj9m4M4bFYnUx5gGc3kFQJ0Hrg-3D



More information about the Swan-dev mailing list