[4162] in BarnOwl Developers
New Defects reported by Coverity Scan for barnowl/barnowl
daemon@ATHENA.MIT.EDU (scan-admin@coverity.com)
Fri Oct 13 03:10:45 2017
Date: Fri, 13 Oct 2017 02:41:33 +0000 (UTC)
From: scan-admin@coverity.com
To: barnowl-dev@mit.edu
Hi,
Please find the latest report on new defect(s) introduced to barnowl/barnowl found with Coverity Scan.
2 new defect(s) introduced to barnowl/barnowl found with Coverity Scan.
61 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 2 of 2 defect(s)
** CID 167555: Code maintainability issues (UNUSED_VALUE)
/tester.c: 72 in main()
________________________________________________________________________________________________________
*** CID 167555: Code maintainability issues (UNUSED_VALUE)
/tester.c: 72 in main()
66 owl_function_firstmsg();
67
68 ENTER;
69 SAVETMPS;
70
71 if (strcmp(argv[1], "--builtin") == 0) {
>>> CID 167555: Code maintainability issues (UNUSED_VALUE)
>>> Assigning value from "owl_regtest()" to "status" here, but that stored value is overwritten before it can be used.
72 status = owl_regtest();
73 } else if (strcmp(argv[1], "-le") == 0 && argc > 2) {
74 /*
75 * 'prove' runs its harness perl with '-le CODE' to get some
76 * information out.
77 */
** CID 167554: Integer handling issues (NO_EFFECT)
/perlglue.c: 1544 in boot_BarnOwl()
________________________________________________________________________________________________________
*** CID 167554: Integer handling issues (NO_EFFECT)
/perlglue.c: 1544 in boot_BarnOwl()
1538 XS_EXTERNAL(boot_BarnOwl); /* prototype to pass -Wmissing-prototypes */
1539 XS_EXTERNAL(boot_BarnOwl)
1540 {
1541 #if PERL_VERSION_LE(5, 21, 5)
1542 dVAR; dXSARGS;
1543 #else
>>> CID 167554: Integer handling issues (NO_EFFECT)
>>> This less-than-zero comparison of an unsigned value is never true. "0UL > 255UL".
1544 dVAR; dXSBOOTARGSXSAPIVERCHK;
1545 #endif
1546 #if (PERL_REVISION == 5 && PERL_VERSION < 9)
1547 char* file = __FILE__;
1548 #else
1549 const char* file = __FILE__;
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRYrrewDOFdlZnXvIT9-2FTpulQozUQQZCinO-2BNBhLHXe-2F4gdtiNUE-2B1OXQT5kbD8666o-3D_h3hbcqB7ijM-2BgKihqpS9XcKewKMbjKIYTYmbfmMEVbYnPF54rlU04Qesb4JnKc3rTyiieVElU0x2DGl5zhlQsAFYh65D0SBWAoMZDqkd-2FQX27xcQZLFLjyJHnV3RQnOc3FvmCWlxmvhWsm6dJYkJaZLiXIHmAAxISAjXAACppEUYiAE2-2BB1xI6294lJXzK-2F41boMxOMCRXAckzVh0OtPN-2FUG2YAkbuGrLwOhdqnMKog-3D
To manage Coverity Scan email notifications for "barnowl-dev@mit.edu", click https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4Xor0WM4kIOUokehDraMHUE9KK4e8Af-2Bxphh0MxbIKXHpc8pekaZ6-2FlvLdeIoDfBU5CIDZ4ODPwTyHJOcCRpHLqzHoplDFSgRLIdLFEfc0Nk-3D_h3hbcqB7ijM-2BgKihqpS9XcKewKMbjKIYTYmbfmMEVbYnPF54rlU04Qesb4JnKc3ru7S635i020B1wuc8mnHfqZErzeKdqc4MmdV03aiI9qCJWbncMBUP-2B8kDN44iAK00wCK3z3IBiUKU1fjNfTeeO2ixuXXRJ5weB7FQCGHuTcjMY3QjD-2BFj52N32mWmM-2FLobMjXchI94q5J3kxkDsBSUxI54FK7v6TqRYO4hJzCQXE-3D