Task #132506 - python-crypto-2.6.1-63.fc45/scan-results.err
back to task #132506download
Error: COMPILER_WARNING:
pycrypto-2.6.1/src/MD2.c:45:19: warning[-Wunused-const-variable=]: ‘md2_oid’ defined but not used
# 45 | static const char md2_oid[] = { 0x06, 0x08, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x02, 0x02 };
# | ^~~~~~~
# 43| * }
# 44| */
# 45|-> static const char md2_oid[] = { 0x06, 0x08, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x02, 0x02 };
# 46|
# 47| #define DER_OID ((void*)&md2_oid)
Error: CPPCHECK_WARNING (CWE-457):
pycrypto-2.6.1/src/MD2.c:143: warning[uninitvar]: Uninitialized variable: padding
# 141| padlen= 16-self->count;
# 142| for(i=0; i<padlen; i++) padding[i]=padlen;
# 143|-> hash_update(&temp, padding, padlen);
# 144| hash_update(&temp, temp.C, 16);
# 145| return PyBytes_FromStringAndSize((char *) temp.X, 16);
Error: COMPILER_WARNING (CWE-483):
pycrypto-2.6.1/src/_counter.c: scope_hint: In function ‘PyInit__counter’
pycrypto-2.6.1/src/_counter.c:570:5: warning[-Wmisleading-indentation]: this ‘if’ clause does not guard...
# 570 | if (m == NULL)
# | ^~
pycrypto-2.6.1/src/_counter.c:573:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
# 573 | return m;
# | ^~~~~~
# 568| /* Initialize the module */
# 569| m = PyModule_Create(&moduledef);
# 570|-> if (m == NULL)
# 571| return NULL;
# 572|
Error: GCC_ANALYZER_WARNING (CWE-457):
pycrypto-2.6.1/src/block_template.c:344:33: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘buffer + (sizetype)i’
pycrypto-2.6.1/src/block_template.c:498:1: enter_function: entry to ‘ALG_Decrypt’
pycrypto-2.6.1/src/block_template.c:507:12: branch_true: following ‘true’ branch...
pycrypto-2.6.1/src/block_template.c:508:24: branch_true: ...to here
pycrypto-2.6.1/src/block_template.c:508:24: call_function: calling ‘ALG_Encrypt’ from ‘ALG_Decrypt’
# 342| memmove(self->IV, self->IV + sz,
# 343| BLOCK_SIZE-sz);
# 344|-> memcpy(self->IV + BLOCK_SIZE - sz, buffer + i,
# 345| sz);
# 346| }
Error: COMPILER_WARNING (CWE-569):
pycrypto-2.6.1/src/SHA256.c:72: included_from: Included from here.
pycrypto-2.6.1/src/hash_SHA2_template.c: scope_hint: In function ‘add_length’
pycrypto-2.6.1/src/hash_SHA2_template.c:97:30: warning[-Wtautological-compare]: self-comparison always evaluates to false
# 97 | if (hs->length_upper > hs->length_upper)
# | ^
# 95| overflow_detector = hs->length_upper;
# 96| hs->length_upper++;
# 97|-> if (hs->length_upper > hs->length_upper)
# 98| return 0;
# 99| }
Error: COMPILER_WARNING:
pycrypto-2.6.1/src/strxor.c:31:19: warning[-Wunused-const-variable=]: ‘rcsid’ defined but not used
# 31 | static const char rcsid[] = "$Id$";
# | ^~~~~
# 29| #include "pycrypto_compat.h"
# 30|
# 31|-> static const char rcsid[] = "$Id$";
# 32|
# 33| /*