src/hash_SHA2_template.c:97: bad if test ?
Bug #1279231 reported by
dcb
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python-Crypto |
New
|
Undecided
|
Unassigned |
Bug Description
Static analyser cppcheck says many things about pycrypto-2.6.1,
including
[src/hash_
Source code is
if (hs->length_upper > hs->length_upper)
return 0;
I checked the latest source code in github and it looks broken there also.
To post a comment you must log in.
That is harmless dead code that should be removed.
It purely influences the return value of the function add_length(), but such value is ignored by all of its callers anyway.